Add id column on AssignTo
This commit is contained in:
parent
47bb6250a3
commit
b377d8b538
2 changed files with 7 additions and 2 deletions
5
db/migrate/20170801083632_add_id_to_assign_to.rb
Normal file
5
db/migrate/20170801083632_add_id_to_assign_to.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddIdToAssignTo < ActiveRecord::Migration[5.0]
|
||||||
|
def change
|
||||||
|
add_column :assign_tos, :id, :primary_key
|
||||||
|
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: 20170713151123) do
|
ActiveRecord::Schema.define(version: 20170801083632) 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"
|
||||||
|
@ -64,7 +64,7 @@ ActiveRecord::Schema.define(version: 20170713151123) do
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
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 "gestionnaire_id"
|
||||||
t.integer "procedure_id"
|
t.integer "procedure_id"
|
||||||
t.index ["gestionnaire_id"], name: "index_assign_tos_on_gestionnaire_id", using: :btree
|
t.index ["gestionnaire_id"], name: "index_assign_tos_on_gestionnaire_id", using: :btree
|
||||||
|
|
Loading…
Reference in a new issue