##// END OF EJS Templates
upgrade Rails to 4.2.7.1...
upgrade Rails to 4.2.7.1 git-svn-id: http://svn.redmine.org/redmine/trunk@15734 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12147:9b5ce4b7b44b
r15352:f710d594e3b0
Show More
049_add_wiki_destroy_page_permission.rb
12 lines | 433 B | text/x-ruby | RubyLexer
/ db / migrate / 049_add_wiki_destroy_page_permission.rb
Jean-Philippe Lang
Added the ability to destroy wiki pages (content and its history are deleted from the database)....
r537 class AddWikiDestroyPagePermission < ActiveRecord::Migration
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 # model removed
class Permission < ActiveRecord::Base; end
Jean-Philippe Lang
Added the ability to destroy wiki pages (content and its history are deleted from the database)....
r537 def self.up
Permission.create :controller => 'wiki', :action => 'destroy', :description => 'button_delete', :sort => 1740, :is_public => false, :mail_option => 0, :mail_enabled => 0
end
def self.down
Toshi MARUYAMA
Rails4: db migrate: replace "Permission.find_by_controller_and_action"...
r12147 Permission.where(:controller => "wiki", :action => "destroy").each {|p| p.destroy}
Jean-Philippe Lang
Added the ability to destroy wiki pages (content and its history are deleted from the database)....
r537 end
end