add bypass_email_login_token to instructeur

This commit is contained in:
simon lehericey 2021-04-09 15:14:46 +02:00
parent 2fc0ceb884
commit cd6cb99c3c
3 changed files with 14 additions and 6 deletions

View file

@ -3,6 +3,7 @@
# Table name: instructeurs
#
# id :integer not null, primary key
# bypass_email_login_token :boolean default(FALSE), not null
# encrypted_login_token :text
# login_token_created_at :datetime
# created_at :datetime

View file

@ -0,0 +1,6 @@
class AddBypassEmailLoginTokenColumnToInstructeur < ActiveRecord::Migration[6.1]
def change
# This may take a while if running on Postgres < 11
add_column :instructeurs, :bypass_email_login_token, :boolean, default: false, null: false
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_04_09_075105) do
ActiveRecord::Schema.define(version: 2021_04_09_130604) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -459,6 +459,7 @@ ActiveRecord::Schema.define(version: 2021_04_09_075105) do
t.datetime "updated_at"
t.text "encrypted_login_token"
t.datetime "login_token_created_at"
t.boolean "bypass_email_login_token", default: false, null: false
end
create_table "invites", id: :serial, force: :cascade do |t|