aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20150218175300_set_organisation_id_to_rps.rb12
-rw-r--r--db/migrate/20150219175300_insert_default_organisation.rb2
2 files changed, 0 insertions, 14 deletions
diff --git a/db/migrate/20150218175300_set_organisation_id_to_rps.rb b/db/migrate/20150218175300_set_organisation_id_to_rps.rb
deleted file mode 100644
index 77ac1a71c..000000000
--- a/db/migrate/20150218175300_set_organisation_id_to_rps.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-class SetOrganisationIdToRps < ActiveRecord::Migration
- def up
- # RuleParameterSet.where(organisation_id: nil).update_all "name = concat(name, ' ', id)"
- # RuleParameterSet.joins(...).update_all("organisation_id = referentials.organisation_id")
- # fails (see https://github.com/rails/arel/pull/294)
- # execute "UPDATE rule_parameter_sets SET organisation_id = referentials.organisation_id FROM referentials WHERE referentials.id = rule_parameter_sets.referential_id;"
- end
-
- def down
- # RuleParameterSet.update_all organisation_id: nil
- end
-end
diff --git a/db/migrate/20150219175300_insert_default_organisation.rb b/db/migrate/20150219175300_insert_default_organisation.rb
index fe7bbd539..2734893f5 100644
--- a/db/migrate/20150219175300_insert_default_organisation.rb
+++ b/db/migrate/20150219175300_insert_default_organisation.rb
@@ -1,8 +1,6 @@
class InsertDefaultOrganisation < ActiveRecord::Migration
class Organisation < ActiveRecord::Base
attr_accessor :name
-
- has_many :rule_parameter_sets, :dependent => :destroy
end
def up