Merge pull request #160 from internetee/story/116761157-contact-dyn-states

Story/116761157 contact dyn states
This commit is contained in:
Timo Võhmar 2016-08-01 15:47:23 +03:00 committed by GitHub
commit f2f9377cd9
9 changed files with 72 additions and 108 deletions

View file

@ -0,0 +1,6 @@
class ChangeContactStatusesDefault < ActiveRecord::Migration
def change
change_column_default :contacts, :statuses, []
Contact.where(statuses: nil). update_all(statuses: [])
end
end