]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/051_add_status_to_user.rb
Merge remote-tracking branch 'upstream/pull/4169'
[rails.git] / db / migrate / 051_add_status_to_user.rb
index f98cfd1eb5baac827b9f5652602e85bb946183d8..f170e0de887c247aedd000f788d6ac4645c81f9f 100644 (file)
@@ -1,8 +1,9 @@
-require "migrate"
+class AddStatusToUser < ActiveRecord::Migration[4.2]
+  class User < ApplicationRecord
+  end
 
-class AddStatusToUser < ActiveRecord::Migration
   def self.up
-    create_enumeration :user_status_enum, %w(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"