X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ac7bb003ec9726d23d0a537f347c2dd4c8f7204a..a1b179fa384d689e6cb78c2b8d863621e7bff152:/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..e29ec0704 100644 --- a/db/migrate/054_refactor_map_bug_tables.rb +++ b/db/migrate/054_refactor_map_bug_tables.rb @@ -1,10 +1,10 @@ -require 'migrate' +require "migrate" -class RefactorMapBugTables < ActiveRecord::Migration +class RefactorMapBugTables < ActiveRecord::Migration[5.0] 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 +12,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