X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f7bd08f4a8a6a626a0c1d7ed60f2dcd6a6801e8..778659a78cdbdbf03014943b9ce85b990daa8cb1:/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 e79246f48..f98cfd1eb 100644 --- a/db/migrate/051_add_status_to_user.rb +++ b/db/migrate/051_add_status_to_user.rb @@ -1,8 +1,8 @@ -require 'migrate' +require "migrate" class AddStatusToUser < ActiveRecord::Migration def self.up - create_enumeration :user_status_enum, ["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"