mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +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
|
||||
def change
|
||||
change_column_default :contacts, :statuses, []
|
||||
Contact.where(statuses: nil). update_all(statuses: [])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue