Add stable_id to types_de_champ

This commit is contained in:
Paul Chavard 2018-11-23 19:22:33 +01:00
parent 6c5d3cc2de
commit fb57a07927
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,6 @@
class AddStableIdToTypesDeChamp < ActiveRecord::Migration[5.2]
def change
add_column :types_de_champ, :stable_id, :bigint
add_index :types_de_champ, :stable_id
end
end

View file

@ -556,7 +556,9 @@ ActiveRecord::Schema.define(version: 2018_11_23_195208) do
t.datetime "created_at"
t.datetime "updated_at"
t.jsonb "options"
t.bigint "stable_id"
t.index ["private"], name: "index_types_de_champ_on_private"
t.index ["stable_id"], name: "index_types_de_champ_on_stable_id"
end
create_table "types_de_piece_justificative", id: :serial, force: :cascade do |t|