Sha256: f311ad1ccf7488e493257727d2676620da1aa7e3d0a40503115815b83bfd7d46

Contents?: true

Size: 258 Bytes

Versions: 5

Compression:

Stored size: 258 Bytes

Contents

class AddRolesMaskToUsers < 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

5 entries across 5 versions & 1 rubygems

Version Path
roles_active_record-0.3.5 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.3.4 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.3.3 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.3.2 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.3.1 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb