Sha256: d3240421facafbbc89422a36670064e386757d30a78db69641a45693f36a5e33

Contents?: true

Size: 256 Bytes

Versions: 14

Compression:

Stored size: 256 Bytes

Contents

class AddRoleToUsers < ActiveRecord::Migration
  def self.up           
    change_table :<%= table_name %> do |t|
      t.integer :role_id
    end
  end

  def self.down
    change_table :<%= table_name %> do |t|
      t.remove :role_id
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
roles_active_record-0.4.0 sandbox/add_role_to_users_migration.erb
roles_active_record-0.3.6 sandbox/add_role_to_users_migration.erb
roles_active_record-0.3.5 sandbox/add_role_to_users_migration.erb
roles_active_record-0.3.4 sandbox/add_role_to_users_migration.erb
roles_active_record-0.3.3 sandbox/add_role_to_users_migration.erb
roles_active_record-0.3.2 sandbox/add_role_to_users_migration.erb
roles_active_record-0.3.1 sandbox/add_role_to_users_migration.erb
roles_active_record-0.2.5 sandbox/add_role_to_users_migration.erb
roles_active_record-0.2.4 sandbox/add_role_to_users_migration.erb
roles_active_record-0.2.3 sandbox/add_role_to_users_migration.erb
roles_active_record-0.2.2 sandbox/add_role_to_users_migration.erb
roles_active_record-0.2.1 sandbox/add_role_to_users_migration.erb
roles_active_record-0.2.0 sandbox/add_role_to_users_migration.erb
roles_active_record-0.1.0 sandbox/add_role_to_users_migration.erb