Sha256: 89ceebb2b4bf506361c9db96d71d34459b2492955a197a6ef7818a239fa8ec8d

Contents?: true

Size: 254 Bytes

Versions: 105

Compression:

Stored size: 254 Bytes

Contents

class AddIsActiveToUsers < ActiveRecord::Migration
  def change
    return if not table_exists?(:users)
    return if column_exists?(:users, :active)
    return if column_exists?(:users, :is_active)

    add_column :users, :is_active, :boolean
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
dorsale-4.0.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.20.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.19.1 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.19.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.18.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.17.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.16.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.15.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.11 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.10 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.9 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.8 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.7 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.6 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.5 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.4 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.3 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.2 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.1 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.14.0 db/migrate/20151103110115_add_is_active_to_users.rb