add agent_connect_id to instructeur
This commit is contained in:
parent
3316dfc866
commit
1926a630f9
3 changed files with 11 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
# login_token_created_at :datetime
|
# login_token_created_at :datetime
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
|
# agent_connect_id :string
|
||||||
#
|
#
|
||||||
class Instructeur < ApplicationRecord
|
class Instructeur < ApplicationRecord
|
||||||
has_many :administrateurs_instructeurs
|
has_many :administrateurs_instructeurs
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
class AddAgentConnectSubColumnToInstructeursTable < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
add_column :instructeurs, :agent_connect_id, :string
|
||||||
|
add_index :instructeurs, :agent_connect_id, unique: true
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,8 @@
|
||||||
#
|
#
|
||||||
# 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_11_15_112933) do
|
ActiveRecord::Schema.define(version: 2021_11_19_112046) 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"
|
||||||
enable_extension "unaccent"
|
enable_extension "unaccent"
|
||||||
|
@ -534,6 +535,8 @@ ActiveRecord::Schema.define(version: 2021_11_15_112933) do
|
||||||
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
|
t.boolean "bypass_email_login_token", default: false, null: false
|
||||||
|
t.string "agent_connect_id"
|
||||||
|
t.index ["agent_connect_id"], name: "index_instructeurs_on_agent_connect_id", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "invites", id: :serial, force: :cascade do |t|
|
create_table "invites", id: :serial, force: :cascade do |t|
|
||||||
|
|
Loading…
Reference in a new issue