025_add_search_permission.rb
12 lines
| 412 B
| text/x-ruby
|
RubyLexer
|
r276 | class AddSearchPermission < ActiveRecord::Migration | ||
|
r663 | # model removed | ||
class Permission < ActiveRecord::Base; end | ||||
|
r276 | 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 | ||||
|
r335 | Permission.find_by_controller_and_action('projects', 'search').destroy | ||
|
r276 | end | ||
end | ||||