Sha256: 4c282126906eb135d8130242014ef31ac50c0afbaa03bb0ff0666e6d5e1ea8fd

Contents?: true

Size: 272 Bytes

Versions: 12

Compression:

Stored size: 272 Bytes

Contents

class ChangeAlchemyUsersRoleToRoles < ActiveRecord::Migration
  def up
    rename_column :alchemy_users, :role, :roles
    add_index :alchemy_users, :roles
  end

  def down
    remove_index :alchemy_users, :roles
    rename_column :alchemy_users, :roles, :role
  end
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-2.6.3 spec/dummy/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.3 db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.2.1 db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.2.1 spec/dummy/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.2 db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.2 spec/dummy/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.1 db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.1 spec/dummy/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.0 db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.0 spec/dummy/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.0.rc5 spec/dummy/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb
alchemy_cms-2.6.0.rc5 db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb