Sha256: 55c46fb9fc996f99796a5a9c6446bb0e1c4fc3a2afd33a399a602c28048bb1ef

Contents?: true

Size: 240 Bytes

Versions: 240

Compression:

Stored size: 240 Bytes

Contents

class AddFormerUserToUser < ActiveRecord::Migration[6.0]
  def change
    add_column :users, :former_user, :boolean, default: false
    User.update_all(former_user: false)
    change_column_null :users, :former_user, false, false
  end
end

Version data entries

240 entries across 240 versions & 1 rubygems

Version Path
bullet_train-1.6.12 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.11 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.10 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.9 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.8 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.7 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.6 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.5 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.4 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.3 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.2 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.1 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.6.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.5.2 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.5.1 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.5.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.4.11 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.4.10 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.4.9 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.4.8 db/migrate/20200213235037_add_former_user_to_user.rb