X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/24b138db094e4b5e8d062c5248ee867967dc0fd7..3666b674330ec8d14a224932a191d6121c5974e2:/db/migrate/051_add_status_to_user.rb diff --git a/db/migrate/051_add_status_to_user.rb b/db/migrate/051_add_status_to_user.rb index a58f8f8c9..23761f248 100644 --- a/db/migrate/051_add_status_to_user.rb +++ b/db/migrate/051_add_status_to_user.rb @@ -1,6 +1,9 @@ require "migrate" class AddStatusToUser < ActiveRecord::Migration[4.2] + class User < ApplicationRecord + end + def self.up create_enumeration :user_status_enum, %w[pending active confirmed suspended deleted]