X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eada36ff96d1b534457d98a25239ec468a7cba2c..1b288d40c7fff3d3be8d82d4e96c9008778f4dba:/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 f170e0de8..bea9f125f 100644 --- a/db/migrate/051_add_status_to_user.rb +++ b/db/migrate/051_add_status_to_user.rb @@ -3,7 +3,7 @@ class AddStatusToUser < ActiveRecord::Migration[4.2] 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"