2020-08-07 01:14:14 +02:00
|
|
|
class AddStatsToGroups < ActiveRecord::Migration[4.2]
|
2009-08-01 13:41:22 +02:00
|
|
|
def self.up
|
|
|
|
add_column :groups, :stats, :text
|
|
|
|
|
|
|
|
Ordergroup.all.each { |o| o.update_stats! }
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_column :groups, :stats
|
|
|
|
end
|
|
|
|
end
|