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.14.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.13.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.12.3 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.12.2 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.12.1 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.12.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.11.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.10.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.9.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.8.5 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.8.4 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.8.3 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.8.2 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.8.1 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.8.0 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.7.23 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.7.22 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.7.21 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.7.20 db/migrate/20200213235037_add_former_user_to_user.rb
bullet_train-1.7.19 db/migrate/20200213235037_add_former_user_to_user.rb