diff options
author | Peter Kozak <spag@golwen.net> | 2013-01-13 16:40:57 +0000 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-01-13 16:40:57 +0000 |
commit | 4cacd9a6ccc2caa0606a7cb6db0002c67dbae33b (patch) | |
tree | c7e0f2932533881869561330b3ed2bab43a66154 | |
parent | 9c3f6bfe2b5ae7d1dc05de432ce4fe202940d84d (diff) |
gateway settings model migration
-rw-r--r-- | db/migrate/20130113073323_create_gateway_settings.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20130113073323_create_gateway_settings.rb b/db/migrate/20130113073323_create_gateway_settings.rb new file mode 100644 index 0000000..0200ae7 --- /dev/null +++ b/db/migrate/20130113073323_create_gateway_settings.rb @@ -0,0 +1,16 @@ +class CreateGatewaySettings < ActiveRecord::Migration + def self.up + create_table :gateway_settings 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_settings + end +end |