Sha256: 531994cbc4e6917dfc23b7bb2a0066251a1103469b458fb43fa74f52abecd6d8

Contents?: true

Size: 258 Bytes

Versions: 7

Compression:

Stored size: 258 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
roles_active_record-0.2.5 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.2.4 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.2.3 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.2.2 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.2.1 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.2.0 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb
roles_active_record-0.1.0 spec/migrations/roles_mask/005_add_roles_mask_to_users.rb