annotate .svn/pristine/93/93ca6805a3251b8650538af46c102f977fd67603.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 class EnableCalendarAndGanttModulesWhereAppropriate < ActiveRecord::Migration
Chris@1464 2 def self.up
Chris@1464 3 EnabledModule.where(:name => 'issue_tracking').all.each do |e|
Chris@1464 4 EnabledModule.create(:name => 'calendar', :project_id => e.project_id)
Chris@1464 5 EnabledModule.create(:name => 'gantt', :project_id => e.project_id)
Chris@1464 6 end
Chris@1464 7 end
Chris@1464 8
Chris@1464 9 def self.down
Chris@1464 10 EnabledModule.delete_all("name = 'calendar' OR name = 'gantt'")
Chris@1464 11 end
Chris@1464 12 end