X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ac7bb003ec9726d23d0a537f347c2dd4c8f7204a..9568c7fee85a615830ba78639b2ee8440da60668:/db/migrate/054_refactor_map_bug_tables.rb diff --git a/db/migrate/054_refactor_map_bug_tables.rb b/db/migrate/054_refactor_map_bug_tables.rb index d3839aaa8..23221c7b1 100644 --- a/db/migrate/054_refactor_map_bug_tables.rb +++ b/db/migrate/054_refactor_map_bug_tables.rb @@ -1,10 +1,8 @@ -require 'migrate' - -class RefactorMapBugTables < ActiveRecord::Migration +class RefactorMapBugTables < ActiveRecord::Migration[4.2] def self.up create_table :map_bug_comment do |t| t.column :bug_id, :bigint, :null => false - t.boolean :visible, :null => false + t.boolean :visible, :null => false t.datetime :date_created, :null => false t.string :commenter_name t.string :commenter_ip @@ -12,7 +10,7 @@ class RefactorMapBugTables < ActiveRecord::Migration t.string :comment end - remove_column :map_bugs, :text + remove_column :map_bugs, :text change_column :map_bug_comment, :id, :bigint