Mercurial > hg > soundsoftware-site
view db/migrate/.svn/text-base/025_add_search_permission.rb.svn-base @ 558:c94e23a6eff1 feature_36
Related to Bug #222Updated the look of the authors list (more intuitive to sort). Created the plugin's stylesheet file.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 03 Aug 2011 16:27:13 +0100 |
parents | 513646585e45 |
children |
line wrap: on
line source
class AddSearchPermission < ActiveRecord::Migration # model removed class Permission < ActiveRecord::Base; end def self.up Permission.create :controller => "projects", :action => "search", :description => "label_search", :sort => 130, :is_public => true, :mail_option => 0, :mail_enabled => 0 end def self.down Permission.find_by_controller_and_action('projects', 'search').destroy end end