X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b606acba0c28652fa6f066c2b5d989ceae41c194..783b5e3729228908d7404ae7404af1023501a906:/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..5cf8a920f 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 < ActiveRecord::Base + end + def self.up create_enumeration :user_status_enum, %w[pending active confirmed suspended deleted]