Sha256: 34b81fd9e8bcac5169559ce9978530289ff789a1aa845dbad5bb61c9b93b6298

Contents?: true

Size: 199 Bytes

Versions: 59

Compression:

Stored size: 199 Bytes

Contents

class AddDefaultRoleToUsers < ActiveRecord::Migration
  def self.up
    change_column_default :users, :role, "registered"
  end

  def self.down
    change_column_default :users, :role, nil
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
alchemy_cms-2.3.2 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.4 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.3.1 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.3.2 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.3.1 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.12 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.3.0 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.3.rc5 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.2 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.1 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.0 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc15 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.0.7 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.11 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc14 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc13 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc11 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc8 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc7 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.9.1 db/migrate/20110919110451_add_default_role_to_users.rb