şunun yansıması
https://github.com/redmine/redmine.git
eşitlendi 2024-08-27 05:58:46 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: http://svn.redmine.org/redmine/trunk@15675 e93f8b46-1217-0410-a6f0-8f06a7374b81
13 satır
421 B
Ruby
13 satır
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
|