Implemented stats for ordergroups on startpage. Annotated models.
This commit is contained in:
parent
709425855e
commit
d848831fea
65 changed files with 407 additions and 338 deletions
11
db/migrate/20090731132547_add_stats_to_groups.rb
Normal file
11
db/migrate/20090731132547_add_stats_to_groups.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class AddStatsToGroups < ActiveRecord::Migration
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue