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