diff options
| author | Xinhui | 2017-11-17 12:04:41 +0100 |
|---|---|---|
| committer | Xinhui | 2017-11-17 12:04:51 +0100 |
| commit | 219af774c2d589446133bda55aa0f001d6526181 (patch) | |
| tree | e29ccc5d39170b9ad76f60cb59e64082b5cd7f4b | |
| parent | 1d6dee5b7884c281c8674592a360a66ceb6947bd (diff) | |
| download | chouette-core-4516_cleanup_rule_parameter_set.tar.bz2 | |
Remove migration4516_cleanup_rule_parameter_set
Refs #4516
| -rw-r--r-- | db/migrate/20150218175300_set_organisation_id_to_rps.rb | 12 | ||||
| -rw-r--r-- | db/migrate/20150219175300_insert_default_organisation.rb | 2 |
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 |
