X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e6667b7ff5117c101a891c899f1c624f707fa22e..23479067254696a9a59f89deeff93e22e0f3e661:/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 23761f248..bea9f125f 100644 --- a/db/migrate/051_add_status_to_user.rb +++ b/db/migrate/051_add_status_to_user.rb @@ -1,11 +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] + create_enum :user_status_enum, %w[pending active confirmed suspended deleted] add_column :users, :status, :user_status_enum, :null => false, :default => "pending"