1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-15 13:38:13 +00:00
redmine/time/db/migrate/006_calendar_and_activity.rb
Jean-Philippe Lang b23cb49756 created branch for time tracking
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-03-11 18:11:40 +00:00

14 lines
942 B
Ruby

class CalendarAndActivity < ActiveRecord::Migration
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