mirror of
https://github.com/internetee/registry.git
synced 2025-08-12 04:29:33 +02:00
Merge branch 'story/116761157-contact-dyn-states' into staging
This commit is contained in:
commit
45f478780c
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
class ChangeContactStatusesDefault < ActiveRecord::Migration
|
class ChangeContactStatusesDefault < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
change_column_default :contacts, :statuses, []
|
change_column_default :contacts, :statuses, []
|
||||||
|
Contact.where(statuses: nil). update_all(statuses: [])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue