mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
6 lines
194 B
Ruby
6 lines
194 B
Ruby
class ChangeContactStatusesDefault < ActiveRecord::Migration
|
|
def change
|
|
change_column_default :contacts, :statuses, []
|
|
Contact.where(statuses: nil). update_all(statuses: [])
|
|
end
|
|
end
|