summaryrefslogtreecommitdiffstats
path: root/db/migrate/025_add_search_permission.rb
blob: 408716eb69a71bfd81488ea14d9806143028c1a3 (plain)
1
2
3
4
5
6
7
8
9
class AddSearchPermission < ActiveRecord::Migration
  def self.up
    Permission.create :controller => "projects", :action => "search", :description => "label_search", :sort => 130, :is_public => true, :mail_option => 0, :mail_enabled => 0
  end

  def self.down
    Permission.find_by_controller_and_action('projects', 'search').destroy
  end
end