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.1.9 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc6 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.8.1 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc3 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.8 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc2 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.2.rc1 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.7 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.6 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.5 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.4 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.3 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.2 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.1 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.rc6 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.rc5 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.rc4 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.rc3 db/migrate/20110919110451_add_default_role_to_users.rb
alchemy_cms-2.1.rc2 db/migrate/20110919110451_add_default_role_to_users.rb