Mercurial > hg > soundsoftware-site
view .svn/pristine/a6/a677b960a442cc4fdd4c022f1d5c5fd8938b0275.svn-base @ 1492:54f320b40728 live
Merge
author | Chris Cannam |
---|---|
date | Mon, 17 Mar 2014 08:56:45 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
class CalendarAndActivity < ActiveRecord::Migration # model removed class Permission < ActiveRecord::Base; end def self.up Permission.create :controller => "projects", :action => "activity", :description => "label_activity", :sort => 160, :is_public => true, :mail_option => 0, :mail_enabled => 0 Permission.create :controller => "projects", :action => "calendar", :description => "label_calendar", :sort => 165, :is_public => true, :mail_option => 0, :mail_enabled => 0 Permission.create :controller => "projects", :action => "gantt", :description => "label_gantt", :sort => 166, :is_public => true, :mail_option => 0, :mail_enabled => 0 end def self.down Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'activity']).destroy Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'calendar']).destroy Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'gantt']).destroy end end