X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a70b61315c2331c18123a0b36782d6ef6bb3ab3e..784d4ca03d1c8916c94dd8528c54c60ce4b0967a:/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 e79246f48..d3adcee33 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 +class AddStatusToUser < ActiveRecord::Migration[5.0] 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"