]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/053_add_map_bug_tables.rb
Fix most auto-correctable rubocop issues
[rails.git] / db / migrate / 053_add_map_bug_tables.rb
index 6851a20b4d4f8c5e8efaa0235c81d961694510a4..54c23fd1d73e84c2a9dad577a25fe42c751ff097 100644 (file)
@@ -2,15 +2,15 @@ require 'migrate'
 
 class AddMapBugTables < ActiveRecord::Migration
   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