X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/95e8c63c2a3aee63c3eb21d7b70343ff1d17f652..c0291f4025ea9365cac12f62f286d5cbdb599669:/db/migrate/053_add_map_bug_tables.rb
diff --git a/db/migrate/053_add_map_bug_tables.rb b/db/migrate/053_add_map_bug_tables.rb
index 6851a20b4..6ad3af0eb 100644
--- a/db/migrate/053_add_map_bug_tables.rb
+++ b/db/migrate/053_add_map_bug_tables.rb
@@ -1,16 +1,14 @@
-require 'migrate'
-
-class AddMapBugTables < ActiveRecord::Migration
+class AddMapBugTables < ActiveRecord::Migration[4.2]
def self.up
- create_enumeration :map_bug_status_enum, ["open", "closed", "hidden"]
+ create_enumeration :map_bug_status_enum, %w[open closed hidden]
create_table :map_bugs do |t|
- t.integer :latitude, :null => false
- t.integer :longitude, :null => false
+ t.integer :latitude, :null => false
+ t.integer :longitude, :null => false
t.column :tile, :bigint, :null => false
t.datetime :last_changed, :null => false
- t.datetime :date_created, :null => false
- t.string :nearby_place
+ t.datetime :date_created, :null => false
+ t.string :nearby_place
t.string :text
t.column :status, :map_bug_status_enum, :null => false
end