Drop Procedure.administrateur_id (#4044)
Suppression de la référence obsolète `Procedure.administrateur_id` dans la base de données
This commit is contained in:
commit
6fa7cb6275
3 changed files with 6 additions and 4 deletions
|
@ -1,8 +1,6 @@
|
|||
require Rails.root.join('lib', 'percentile')
|
||||
|
||||
class Procedure < ApplicationRecord
|
||||
self.ignored_columns = [:administrateur_id]
|
||||
|
||||
MAX_DUREE_CONSERVATION = 36
|
||||
|
||||
has_many :types_de_piece_justificative, -> { ordered }, inverse_of: :procedure, dependent: :destroy
|
||||
|
|
5
db/migrate/20190704144304_drop_administrateur_id.rb
Normal file
5
db/migrate/20190704144304_drop_administrateur_id.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class DropAdministrateurId < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_reference :procedures, :administrateur
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2019_06_27_132911) do
|
||||
ActiveRecord::Schema.define(version: 2019_07_04_144304) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -474,7 +474,6 @@ ActiveRecord::Schema.define(version: 2019_06_27_132911) do
|
|||
t.string "lien_demarche"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "administrateur_id"
|
||||
t.boolean "euro_flag", default: false
|
||||
t.string "logo"
|
||||
t.boolean "cerfa_flag", default: false
|
||||
|
|
Loading…
Add table
Reference in a new issue