diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130105120126_create_gs_parameters.rb (renamed from db/migrate/20130105093021_create_gs_parameters.rb) | 10 | ||||
-rw-r--r-- | db/migrate/20130105120353_populate_gs_parameter_with_defaults.rb (renamed from db/migrate/20130105093128_populate_gs_parameter_with_defaults.rb) | 0 |
2 files changed, 7 insertions, 3 deletions
diff --git a/db/migrate/20130105093021_create_gs_parameters.rb b/db/migrate/20130105120126_create_gs_parameters.rb index e1ea2b2..b8b915b 100644 --- a/db/migrate/20130105093021_create_gs_parameters.rb +++ b/db/migrate/20130105120126_create_gs_parameters.rb @@ -1,12 +1,16 @@ class CreateGsParameters < ActiveRecord::Migration - def change + def self.up create_table :gs_parameters do |t| t.string :name t.string :section - t.string :value + t.text :value t.string :class_type - + t.string :description t.timestamps end end + + def self.down + drop_table :gs_parameters + end end diff --git a/db/migrate/20130105093128_populate_gs_parameter_with_defaults.rb b/db/migrate/20130105120353_populate_gs_parameter_with_defaults.rb index a4c9358..a4c9358 100644 --- a/db/migrate/20130105093128_populate_gs_parameter_with_defaults.rb +++ b/db/migrate/20130105120353_populate_gs_parameter_with_defaults.rb |