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

Version Path
curate-0.6.6 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.6.5 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.6.4 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.6.3 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.6.1 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.6.0 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.5.6 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.5.5 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.5.4 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.5.2 db/migrate/20131029142554_add_user_force_update_profile.rb
curate-0.5.1 spec/internal/db/migrate/20131028141234_add_user_force_update_profile.rb
curate-0.5.1 lib/generators/curate/templates/migrations/add_user_force_update_profile.rb
curate-0.5.0 lib/generators/curate/templates/migrations/add_user_force_update_profile.rb
curate-0.5.0 spec/internal/db/migrate/20131018143725_add_user_force_update_profile.rb
curate-0.4.2 lib/generators/curate/templates/migrations/add_user_force_update_profile.rb