Add id column on AssignTo

This commit is contained in:
Mathieu Magnin 2017-08-01 10:53:06 +02:00
parent 47bb6250a3
commit b377d8b538
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class AddIdToAssignTo < ActiveRecord::Migration[5.0]
def change
add_column :assign_tos, :id, :primary_key
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: 20170713151123) do
ActiveRecord::Schema.define(version: 20170801083632) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -64,7 +64,7 @@ ActiveRecord::Schema.define(version: 20170713151123) do
t.datetime "updated_at", null: false
end
create_table "assign_tos", id: false, force: :cascade do |t|
create_table "assign_tos", force: :cascade do |t|
t.integer "gestionnaire_id"
t.integer "procedure_id"
t.index ["gestionnaire_id"], name: "index_assign_tos_on_gestionnaire_id", using: :btree