X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11cc4a5e601dd288d601e6e35a72d159062f18b5..e4c40cbd36567d050f1b779f1444c4ef26c50a5b:/db/migrate/051_add_status_to_user.rb?ds=sidebyside diff --git a/db/migrate/051_add_status_to_user.rb b/db/migrate/051_add_status_to_user.rb index a58f8f8c9..f170e0de8 100644 --- a/db/migrate/051_add_status_to_user.rb +++ b/db/migrate/051_add_status_to_user.rb @@ -1,6 +1,7 @@ -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]