view db/migrate/.svn/text-base/014_add_queries_permissions.rb.svn-base @ 534:cdec3eeaef7e feature_36

changes in the Query to retreive list of My Publications
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 26 Jul 2011 14:35:11 +0100
parents 513646585e45
children
line wrap: on
line source
class AddQueriesPermissions < ActiveRecord::Migration
  # model removed
  class Permission < ActiveRecord::Base; end

  def self.up
    Permission.create :controller => "projects", :action => "add_query", :description => "button_create", :sort => 600, :is_public => false, :mail_option => 0, :mail_enabled => 0
  end

  def self.down
    Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'add_query']).destroy
  end
end