1
0
espelhamento de https://github.com/redmine/redmine.git sincronizado 2024-08-01 08:18:13 +02:00
redmine/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb
Jean-Philippe Lang 57afa5345e Don't pass conditions to #delete_all.
git-svn-id: http://svn.redmine.org/redmine/trunk@15675 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-16 10:30:45 +00:00

13 linhas
421 B
Ruby

class EnableCalendarAndGanttModulesWhereAppropriate < ActiveRecord::Migration
def self.up
EnabledModule.where(:name => 'issue_tracking').each do |e|
EnabledModule.create(:name => 'calendar', :project_id => e.project_id)
EnabledModule.create(:name => 'gantt', :project_id => e.project_id)
end
end
def self.down
EnabledModule.where("name = 'calendar' OR name = 'gantt'").delete_all
end
end