summaryrefslogtreecommitdiff
path: root/db/migrate/20130113090705_create_gateway_parameters.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-01-13 16:41:13 +0000
committerPeter Kozak <spag@golwen.net>2013-01-13 16:41:13 +0000
commit2e8f2f2b51303ad1ad677a606e877b1fd3d7219b (patch)
tree07e63adef67ca6b830e4ce7bfb4c06336fbd4762 /db/migrate/20130113090705_create_gateway_parameters.rb
parent4cacd9a6ccc2caa0606a7cb6db0002c67dbae33b (diff)
gateway parameters model migration
Diffstat (limited to 'db/migrate/20130113090705_create_gateway_parameters.rb')
-rw-r--r--db/migrate/20130113090705_create_gateway_parameters.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20130113090705_create_gateway_parameters.rb b/db/migrate/20130113090705_create_gateway_parameters.rb
new file mode 100644
index 0000000..bbf5f54
--- /dev/null
+++ b/db/migrate/20130113090705_create_gateway_parameters.rb
@@ -0,0 +1,16 @@
+class CreateGatewayParameters < ActiveRecord::Migration
+ def self.up
+ create_table :gateway_parameters do |t|
+ t.integer :gateway_id
+ t.string :name
+ t.string :value
+ t.string :class_type
+ t.string :description
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :gateway_parameters
+ end
+end