add bypass_email_login_token to instructeur
This commit is contained in:
parent
2fc0ceb884
commit
cd6cb99c3c
3 changed files with 14 additions and 6 deletions
|
@ -2,11 +2,12 @@
|
||||||
#
|
#
|
||||||
# Table name: instructeurs
|
# Table name: instructeurs
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# encrypted_login_token :text
|
# bypass_email_login_token :boolean default(FALSE), not null
|
||||||
# login_token_created_at :datetime
|
# encrypted_login_token :text
|
||||||
# created_at :datetime
|
# login_token_created_at :datetime
|
||||||
# updated_at :datetime
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
class Instructeur < ApplicationRecord
|
class Instructeur < ApplicationRecord
|
||||||
has_and_belongs_to_many :administrateurs
|
has_and_belongs_to_many :administrateurs
|
||||||
|
|
|
@ -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
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -459,6 +459,7 @@ ActiveRecord::Schema.define(version: 2021_04_09_075105) do
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.text "encrypted_login_token"
|
t.text "encrypted_login_token"
|
||||||
t.datetime "login_token_created_at"
|
t.datetime "login_token_created_at"
|
||||||
|
t.boolean "bypass_email_login_token", default: false, null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "invites", id: :serial, force: :cascade do |t|
|
create_table "invites", id: :serial, force: :cascade do |t|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue