Skip to content

Commit

Permalink
Merge commit 'd331c479e4cf79d104e129db24355d80759b4d4d' into devpf
Browse files Browse the repository at this point in the history
# Conflicts:
#	db/schema.rb
  • Loading branch information
maatinito committed Dec 12, 2023
2 parents 67aa67f + d331c47 commit ad60fd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/models/dossier_correction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class DossierCorrection < ApplicationRecord
belongs_to :dossier
belongs_to :commentaire

self.ignored_columns += ['kind']

validates_associated :commentaire

scope :pending, -> { where(resolved_at: nil) }
Expand Down
7 changes: 7 additions & 0 deletions db/migrate/20230713163641_remove_dossier_corrections_kind.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class RemoveDossierCorrectionsKind < ActiveRecord::Migration[7.0]
def change
safety_assured do
remove_column :dossier_corrections, :kind, :string, default: 'incorrect', null: false
end
end
end
1 change: 0 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@
t.bigint "commentaire_id"
t.datetime "created_at", null: false
t.bigint "dossier_id", null: false
t.string "kind", default: "correction", null: false
t.string "reason", default: "incorrect", null: false
t.datetime "resolved_at"
t.datetime "updated_at", null: false
Expand Down

0 comments on commit ad60fd4

Please sign in to comment.