]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/054_refactor_map_bug_tables.rb
Merge remote-tracking branch 'upstream/pull/1964'
[rails.git] / db / migrate / 054_refactor_map_bug_tables.rb
index d3839aaa87a72a4e802604a176694915bb24870c..e29ec070482643ce292bd872dccc43983a29b7e2 100644 (file)
@@ -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