class PresetPermissions < ActiveRecord::Migration
  def self.up
    role = Role.find(:first, :conditions => "name='Manager'")
    role.permissions << :manage_milestones
    role.permissions << :view_issue_estimated_hours
    role.save!
  end

  def self.down
    role = Role.find(:first, :conditions => "name='Manager'")
    role.permissions.delete :manage_milestones
    role.permissions.delete :view_issue_estimated_hours
    role.save!
  end
end

Allow manager to manage milestones and to see estimated hours by default. Fixes 8
Allow manager to manage milestones and to see estimated hours by default. Fixes 8
