Sha256: 007132ad7144010af557d2918108cc616d8c930c687df217b877bedb40ef3a27

Contents?: true

Size: 259 Bytes

Versions: 17

Compression:

Stored size: 259 Bytes

Contents

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
roles_active_record-0.5.1 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.5.0 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.9 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.8 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.7 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.6.4 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.6.3 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.6.2 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.6.1 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.6 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.5 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.4 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.3 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.2 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.1 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.4.0 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb
roles_active_record-0.3.6 spec/migrations/roles_mask/002_add_roles_mask_strategy.rb