summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130718083656_create_extension_modules.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20130718083656_create_extension_modules.rb b/db/migrate/20130718083656_create_extension_modules.rb
new file mode 100644
index 0000000..3372b5f
--- /dev/null
+++ b/db/migrate/20130718083656_create_extension_modules.rb
@@ -0,0 +1,19 @@
+class CreateExtensionModules < ActiveRecord::Migration
+ def self.up
+ create_table :extension_modules do |t|
+ t.string :model
+ t.string :mac_address
+ t.string :ip_address
+ t.string :provisioning_key
+ t.boolean :provisioning_key_active
+ t.integer :phone_id
+ t.integer :position
+ t.boolean :active
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :extension_modules
+ end
+end