Class: AddUserForceUpdateProfile
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddUserForceUpdateProfile
- Defined in:
- lib/generators/curate/templates/migrations/add_user_force_update_profile.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 |
# File 'lib/generators/curate/templates/migrations/add_user_force_update_profile.rb', line 2 def change # Apologies for the negative boolean; However with a default column value of # true, ActiveRecord was setting the default field value to false. # So to appease the ORM, you get the lovely negative boolean! add_column User.table_name, :user_does_not_require_profile_update, :boolean, default: false end |