summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-05 21:00:52 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-05 21:00:52 +0100
commite76890d5f4634d47514a592d501d9792ae2ff7bb (patch)
tree0d257877fa5e5ba295affefd8fe76d3d3954996e /db/migrate
parent4b8dfcded36e1162346ee029d4bfc9c94323bdde (diff)
Different scaffold for GsParameter.
Diffstat (limited to 'db/migrate')
-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