summaryrefslogtreecommitdiffstats
path: root/db/migrate/033_add_timelog_permissions.rb
blob: 3b5b81ed61e4cc0d9d37a9b8af6b904e7215954f (plain)
1
2
3
4
5
6
7
8
9
class AddTimelogPermissions < ActiveRecord::Migration
  def self.up
    Permission.create :controller => "timelog", :action => "edit", :description => "button_log_time", :sort => 1520, :is_public => false, :mail_option => 0, :mail_enabled => 0
  end

  def self.down
    Permission.find_by_controller_and_action('timelog', 'edit').destroy
  end
end