[Fix #233] Remove the champ_id column on commentaires

This commit is contained in:
gregoirenovel 2018-11-22 00:41:18 +01:00
parent e0cb8aef8e
commit 9bff7afabb
2 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,5 @@
class RemoveChampIdFromCommentaires < ActiveRecord::Migration[5.2]
def change
remove_column :commentaires, :champ_id
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: 2018_11_08_151929) do
ActiveRecord::Schema.define(version: 2018_11_21_234008) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -188,9 +188,7 @@ ActiveRecord::Schema.define(version: 2018_11_08_151929) do
t.integer "dossier_id"
t.datetime "updated_at", null: false
t.integer "piece_justificative_id"
t.integer "champ_id"
t.string "file"
t.index ["champ_id"], name: "index_commentaires_on_champ_id"
t.index ["dossier_id"], name: "index_commentaires_on_dossier_id"
end