mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Merge pull request #160 from internetee/story/116761157-contact-dyn-states
Story/116761157 contact dyn states
This commit is contained in:
commit
f2f9377cd9
9 changed files with 72 additions and 108 deletions
|
@ -0,0 +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