Sha256: 418f0825162506ab1b9fdda5dcbbfe18b57dd8b0fcda61c6af6924874a7bfce4

Contents?: true

Size: 264 Bytes

Versions: 12

Compression:

Stored size: 264 Bytes

Contents

class AddAdminFlagStrategy < ActiveRecord::Migration

  def self.up           
    change_table :users do |t|
      t.boolean :admin_flag, :default => false
    end
  end

  def self.down
    change_table :users do |t|
      t.remove :admin_flag
    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/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.3.5 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.3.4 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.3.3 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.3.2 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.3.1 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.2.5 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.2.4 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.2.3 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.2.2 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.2.1 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb
roles_active_record-0.2.0 tmp/rails/db/migrations/20100912101428_add_admin_flag_strategy.rb