20111009111204_remove_allow_create_repo_from_user.rb 234 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
v1.0  
Dmitriy Zaporozhets committed
1 2 3 4 5 6 7 8 9
class RemoveAllowCreateRepoFromUser < ActiveRecord::Migration
  def up
    remove_column :users, :allowed_create_repo
  end

  def down
    add_column :users, :allowed_create_repo, :boolean, :default => true, :null => false
  end
end