##// END OF EJS Templates
Merged r3348 from trunk (version set to 0.9.1)....
Merged r3348 from trunk (version set to 0.9.1). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3349 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r663:603e11d7a5aa
r3235:20a6d7eb86bc
Show More
014_add_queries_permissions.rb
12 lines | 451 B | text/x-ruby | RubyLexer
/ db / migrate / 014_add_queries_permissions.rb
class AddQueriesPermissions < ActiveRecord::Migration
# model removed
class Permission < ActiveRecord::Base; end
def self.up
Permission.create :controller => "projects", :action => "add_query", :description => "button_create", :sort => 600, :is_public => false, :mail_option => 0, :mail_enabled => 0
end
def self.down
Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'add_query']).destroy
end
end