Mercurial > hg > soundsoftware-site
diff db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | 1d32c0a0efbf |
children |
line wrap: on
line diff
--- a/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb Fri Jun 14 09:01:12 2013 +0100 +++ b/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb Fri Jun 14 09:02:21 2013 +0100 @@ -1,6 +1,6 @@ class EnableCalendarAndGanttModulesWhereAppropriate < ActiveRecord::Migration def self.up - EnabledModule.find(:all, :conditions => ["name = ?", 'issue_tracking']).each do |e| + EnabledModule.where(:name => 'issue_tracking').all.each do |e| EnabledModule.create(:name => 'calendar', :project_id => e.project_id) EnabledModule.create(:name => 'gantt', :project_id => e.project_id) end