Ensure Follow dates can not be not null
* Add Follow.unfollowed_at * Change the unicity constraint to gestionnaire/dossier AND unfollowed_at
This commit is contained in:
parent
66a683fab7
commit
ba48a1da6e
3 changed files with 21 additions and 19 deletions
|
@ -0,0 +1,8 @@
|
|||
class EnsureFollowDatesNotNull < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column_null :follows, :demande_seen_at, false
|
||||
change_column_null :follows, :annotations_privees_seen_at, false
|
||||
change_column_null :follows, :avis_seen_at, false
|
||||
change_column_null :follows, :messagerie_seen_at, false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue