summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130105120353_populate_gs_parameter_with_defaults.rb1
-rw-r--r--db/migrate/20130109074326_add_entity_to_gs_parameter.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/db/migrate/20130105120353_populate_gs_parameter_with_defaults.rb b/db/migrate/20130105120353_populate_gs_parameter_with_defaults.rb
index a4c9358..a84e939 100644
--- a/db/migrate/20130105120353_populate_gs_parameter_with_defaults.rb
+++ b/db/migrate/20130105120353_populate_gs_parameter_with_defaults.rb
@@ -1,5 +1,6 @@
class PopulateGsParameterWithDefaults < ActiveRecord::Migration
def up
+ add_column :gs_parameters, :entity, :string, :after => :id
# Generic
#
GsParameter.create(:name => 'GEMEINSCHAFT_VERSION', :section => 'Generic', :value => '5.0.2-nightly-build', :class_type => 'String')
diff --git a/db/migrate/20130109074326_add_entity_to_gs_parameter.rb b/db/migrate/20130109074326_add_entity_to_gs_parameter.rb
index 25091c9..b1c0d4b 100644
--- a/db/migrate/20130109074326_add_entity_to_gs_parameter.rb
+++ b/db/migrate/20130109074326_add_entity_to_gs_parameter.rb
@@ -1,6 +1,6 @@
class AddEntityToGsParameter < ActiveRecord::Migration
def change
- add_column :gs_parameters, :entity, :string, :after => :id
+ add_column :gs_parameters, :entity, :string, :after => :id rescue puts "column already added"
end
end