diff options
author | Peter Kozak <spag@golwen.net> | 2013-01-13 16:41:13 +0000 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-01-13 16:41:13 +0000 |
commit | 2e8f2f2b51303ad1ad677a606e877b1fd3d7219b (patch) | |
tree | 07e63adef67ca6b830e4ce7bfb4c06336fbd4762 /db/migrate | |
parent | 4cacd9a6ccc2caa0606a7cb6db0002c67dbae33b (diff) |
gateway parameters model migration
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20130113090705_create_gateway_parameters.rb | 16 |
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 |