Sha256: 0fb543dd9554f3d3146263c1192f1bb7d9fdc6bdce7f7b26b55fae16985998cf

Contents?: true

Size: 267 Bytes

Versions: 12

Compression:

Stored size: 267 Bytes

Contents

class RemoveAdminFlagStrategy < ActiveRecord::Migration

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

  def self.up
    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/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.3.5 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.3.4 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.3.3 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.3.2 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.3.1 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.2.5 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.2.4 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.2.3 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.2.2 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.2.1 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb
roles_active_record-0.2.0 tmp/rails/db/migrations/20100912101429_remove_admin_flag_strategy.rb