]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/051_add_status_to_user.rb
Merge branch 'master' of github.com:openstreetmap/openstreetmap-website into mobile...
[rails.git] / db / migrate / 051_add_status_to_user.rb
index e79246f48c283b751a012e7b994b7ec06ec495a8..23761f24847c11dd970fa91c2cb6579cb7c2f57f 100644 (file)
@@ -1,8 +1,11 @@
-require 'migrate'
+require "migrate"
+
+class AddStatusToUser < ActiveRecord::Migration[4.2]
+  class User < ApplicationRecord
+  end
 
-class AddStatusToUser < ActiveRecord::Migration
   def self.up
-    create_enumeration :user_status_enum, ["pending","active","confirmed","suspended","deleted"]
+    create_enumeration :user_status_enum, %w[pending active confirmed suspended deleted]
 
     add_column :users, :status, :user_status_enum, :null => false, :default => "pending"