Add user_id and gestionnaire_id to commentaires
This commit is contained in:
parent
713557bf23
commit
b927ab4568
2 changed files with 14 additions and 1 deletions
9
db/migrate/20181204125101_add_user_id_to_commentaires.rb
Normal file
9
db/migrate/20181204125101_add_user_id_to_commentaires.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class AddUserIdToCommentaires < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :commentaires, :user_id, :bigint
|
||||
add_column :commentaires, :gestionnaire_id, :bigint
|
||||
|
||||
add_index :commentaires, :user_id
|
||||
add_index :commentaires, :gestionnaire_id
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2018_11_23_195208) do
|
||||
ActiveRecord::Schema.define(version: 2018_12_04_125101) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -189,7 +189,11 @@ ActiveRecord::Schema.define(version: 2018_11_23_195208) do
|
|||
t.datetime "updated_at", null: false
|
||||
t.integer "piece_justificative_id"
|
||||
t.string "file"
|
||||
t.bigint "user_id"
|
||||
t.bigint "gestionnaire_id"
|
||||
t.index ["dossier_id"], name: "index_commentaires_on_dossier_id"
|
||||
t.index ["gestionnaire_id"], name: "index_commentaires_on_gestionnaire_id"
|
||||
t.index ["user_id"], name: "index_commentaires_on_user_id"
|
||||
end
|
||||
|
||||
create_table "delayed_jobs", id: :serial, force: :cascade do |t|
|
||||
|
|
Loading…
Reference in a new issue