diff options
| author | Xinhui | 2017-11-21 17:35:35 +0100 |
|---|---|---|
| committer | Xinhui | 2017-11-28 12:18:59 +0100 |
| commit | d67ff84efc39190c8b3eb4a05a461a330198a5cd (patch) | |
| tree | eeb66aeaad8a49c040c2261a64fb0e80426937ef /db/migrate | |
| parent | 3a9cc46e7cf705df7cdb8fb7c19daa8165ead33d (diff) | |
| download | chouette-core-d67ff84efc39190c8b3eb4a05a461a330198a5cd.tar.bz2 | |
Remove creator_id column
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20171121153506_remove_creator_id.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20171121153506_remove_creator_id.rb b/db/migrate/20171121153506_remove_creator_id.rb new file mode 100644 index 000000000..84be06027 --- /dev/null +++ b/db/migrate/20171121153506_remove_creator_id.rb @@ -0,0 +1,11 @@ +class RemoveCreatorId < ActiveRecord::Migration + def change + [ + 'companies', 'connection_links', 'facilities', 'group_of_lines', + '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 + end + end +end |
