Files
Redmine/db/migrate/049_add_wiki_destroy_page_permission.rb
Go MAEDA 5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00

15 lines
470 B
Ruby

# frozen_string_literal: false
class AddWikiDestroyPagePermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
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
Permission.where(:controller => "wiki", :action => "destroy").each {|p| p.destroy}
end
end