aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorXinhui2017-11-22 14:34:05 +0100
committerXinhui2017-11-28 12:21:03 +0100
commit4792a04f83f5a52757092e5b66f6d27f658c3c6b (patch)
tree4ec705370cf3c246ebad4ceed66106f176eae42c /db/migrate
parent1e54a61308a8bbb9ad9d63341a4c9d817f414026 (diff)
downloadchouette-core-4792a04f83f5a52757092e5b66f6d27f658c3c6b.tar.bz2
Refactoring move referentialSupport from chouetteController into childrens
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20171121153506_remove_creator_id.rb2
-rw-r--r--db/migrate/20171121163631_remove_creator_from_compliance_check_sets.rb2
-rw-r--r--db/migrate/20171121163832_remove_creator_from_imports.rb5
3 files changed, 2 insertions, 7 deletions
diff --git a/db/migrate/20171121153506_remove_creator_id.rb b/db/migrate/20171121153506_remove_creator_id.rb
index 84be06027..520941841 100644
--- a/db/migrate/20171121153506_remove_creator_id.rb
+++ b/db/migrate/20171121153506_remove_creator_id.rb
@@ -5,7 +5,7 @@ class RemoveCreatorId < ActiveRecord::Migration
'journey_patterns', 'lines', 'networks', 'pt_links', 'routes', 'routing_constraint_zones',
'stop_areas', 'stop_points', 'time_tables', 'timebands', 'vehicle_journeys', 'access_links', 'access_points'
].each do |table_name|
- remove_column table_name, :creator_id
+ remove_column table_name, :creator_id, :string
end
end
end
diff --git a/db/migrate/20171121163631_remove_creator_from_compliance_check_sets.rb b/db/migrate/20171121163631_remove_creator_from_compliance_check_sets.rb
index 0e8179ea5..0798b2040 100644
--- a/db/migrate/20171121163631_remove_creator_from_compliance_check_sets.rb
+++ b/db/migrate/20171121163631_remove_creator_from_compliance_check_sets.rb
@@ -1,5 +1,5 @@
class RemoveCreatorFromComplianceCheckSets < ActiveRecord::Migration
def change
- remove_column :compliance_check_sets, :creator
+ remove_column :compliance_check_sets, :creator, :string
end
end
diff --git a/db/migrate/20171121163832_remove_creator_from_imports.rb b/db/migrate/20171121163832_remove_creator_from_imports.rb
deleted file mode 100644
index d672c491e..000000000
--- a/db/migrate/20171121163832_remove_creator_from_imports.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class RemoveCreatorFromImports < ActiveRecord::Migration
- def change
- remove_column :imports, :creator
- end
-end