view .svn/pristine/92/92893dd333df11020fc7563b01582a530fd52085.svn-base @ 1036:8526d7436527 cannam

Merge from branch "luisf"
author Chris Cannam
date Tue, 13 Nov 2012 14:09:25 +0000
parents cbb26bc654de
children
line wrap: on
line source
class AddWikiDestroyPagePermission < ActiveRecord::Migration
  # 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.find_by_controller_and_action('wiki', 'destroy').destroy
  end
end