summaryrefslogtreecommitdiff
path: root/db/migrate/20130322081621_create_voicemail_accounts.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-26 15:51:35 +0100
committerPeter Kozak <spag@golwen.net>2013-03-26 15:51:35 +0100
commit3833ac1506fb336cd617ec41d25e35c34e74064e (patch)
tree7f865a6529ae42a7e878b34eca8f99b7e65575f2 /db/migrate/20130322081621_create_voicemail_accounts.rb
parent78948fc995786dcd1beae8e98573ec8ccba3ae9d (diff)
voicemail refactored
Diffstat (limited to 'db/migrate/20130322081621_create_voicemail_accounts.rb')
-rw-r--r--db/migrate/20130322081621_create_voicemail_accounts.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20130322081621_create_voicemail_accounts.rb b/db/migrate/20130322081621_create_voicemail_accounts.rb
new file mode 100644
index 0000000..8567adb
--- /dev/null
+++ b/db/migrate/20130322081621_create_voicemail_accounts.rb
@@ -0,0 +1,17 @@
+class CreateVoicemailAccounts < ActiveRecord::Migration
+ def self.up
+ create_table :voicemail_accounts do |t|
+ t.string :uuid
+ t.string :name
+ t.boolean :active
+ t.integer :gs_node_id
+ t.string :voicemail_accountable_type
+ t.integer :voicemail_accountable_id
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :voicemail_accounts
+ end
+end