summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorSascha Daniels <sd@alternative-solution.de>2013-01-09 14:35:06 +0100
committerSascha Daniels <sd@alternative-solution.de>2013-01-09 14:35:06 +0100
commit9c15b1dfd6057cbfde8c6a5c8d90a35073ec5dca (patch)
tree2d8f439d8232d1ef6b27cbc910992f7271b07d6d /db/migrate
parentfb686a23421652f938c1ac5b6368d6f5918a15f5 (diff)
Fixed migration issue. closes #79
Diffstat (limited to 'db/migrate')
-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