Sha256: 97070d12bd69f81f9935a17c8c203a2f967bc37d4a01f8f1673da6a7b8d1172a
Contents?: true
Size: 395 Bytes
Versions: 15
Compression:
Stored size: 395 Bytes
Contents
class AddUserForceUpdateProfile < ActiveRecord::Migration 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 end
Version data entries
15 entries across 13 versions & 1 rubygems