Add discared_at to users
This commit is contained in:
parent
503527459e
commit
337b20661a
3 changed files with 11 additions and 1 deletions
|
@ -8,6 +8,8 @@
|
|||
# confirmed_at :datetime
|
||||
# current_sign_in_at :datetime
|
||||
# current_sign_in_ip :string
|
||||
# discard_reason :string
|
||||
# discarded_at :datetime
|
||||
# email :string default(""), not null
|
||||
# encrypted_password :string default(""), not null
|
||||
# failed_attempts :integer default(0), not null
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
class AddDiscardReasonAndDiscardedAtToUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :users, :discard_reason, :string
|
||||
add_column :users, :discarded_at, :datetime
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2020_09_02_103047) do
|
||||
ActiveRecord::Schema.define(version: 2020_09_16_113507) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -650,6 +650,8 @@ ActiveRecord::Schema.define(version: 2020_09_02_103047) do
|
|||
t.datetime "locked_at"
|
||||
t.bigint "instructeur_id"
|
||||
t.bigint "administrateur_id"
|
||||
t.string "discard_reason"
|
||||
t.datetime "discarded_at"
|
||||
t.index ["administrateur_id"], name: "index_users_on_administrateur_id"
|
||||
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
|
||||
t.index ["email"], name: "index_users_on_email", unique: true
|
||||
|
|
Loading…
Reference in a new issue