Chris@0: class AddWikiDestroyPagePermission < ActiveRecord::Migration Chris@0: # model removed Chris@0: class Permission < ActiveRecord::Base; end Chris@0: Chris@0: def self.up Chris@0: Permission.create :controller => 'wiki', :action => 'destroy', :description => 'button_delete', :sort => 1740, :is_public => false, :mail_option => 0, :mail_enabled => 0 Chris@0: end Chris@0: Chris@0: def self.down Chris@0: Permission.find_by_controller_and_action('wiki', 'destroy').destroy Chris@0: end Chris@0: end