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-3.7.6 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.7.5 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.7.4 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.7.2 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.7.1 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.7.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.6.1 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.6.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.5.2 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.5.1 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.5.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.4.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.3.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.2.0 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.1.7 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.1.6 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.1.5 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.1.4 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.1.3 db/migrate/20151103110115_add_is_active_to_users.rb
dorsale-3.1.2 db/migrate/20151103110115_add_is_active_to_users.rb