Sha256: 6c3dedd357917b8cfd9b3e7f3efe1bb5f031e38a828f46d9919d02af0031bf1c

Contents?: true

Size: 259 Bytes

Versions: 12

Compression:

Stored size: 259 Bytes

Contents

class AddRolesMaskStrategy < ActiveRecord::Migration
  def self.up           
    change_table :users do |t|
      t.integer :roles_mask, :default => 1
    end
  end

  def self.down
    change_table :users do |t|
      t.remove :roles_mask
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
roles_active_record-0.3.6 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.3.5 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.3.4 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.3.3 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.3.2 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.3.1 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.2.5 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.2.4 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.2.3 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.2.2 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.2.1 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb
roles_active_record-0.2.0 tmp/rails/db/migrations/20100912110249_add_roles_mask_strategy.rb