X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..124ec2e9d560e0df291e5a8e5aa67ef5db2f5d46:/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 f98cfd1eb..f3a550c60 100644 --- a/db/migrate/051_add_status_to_user.rb +++ b/db/migrate/051_add_status_to_user.rb @@ -2,7 +2,7 @@ require "migrate" 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"