Sha256: 1e925989dd8ca6c02cf921e280155b437c03817d92d56f34d42d263ecb95f4da
Contents?: true
Size: 415 Bytes
Versions: 34
Compression:
Stored size: 415 Bytes
Contents
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.delete_all("name = 'calendar' OR name = 'gantt'") end end
Version data entries
34 entries across 34 versions & 1 rubygems