]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/053_add_map_bug_tables.rb
Rename 'issue_type' to 'assigned_role', set defaults in the model and test.
[rails.git] / db / migrate / 053_add_map_bug_tables.rb
index c5a4a480196884f2267bb16da963a287a7ec261e..aac3c11c473019ccea730200a3e15651a51e7793 100644 (file)
@@ -1,8 +1,8 @@
-require 'migrate'
+require "migrate"
 
-class AddMapBugTables < ActiveRecord::Migration
+class AddMapBugTables < ActiveRecord::Migration[5.0]
   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