Displaying 1 result from an estimated 1 matches for "backlog_items_count".
2006 Jul 14
3
Migration not updating fields
So I have this fairly basic migration bit of code
class AddCounterCache < ActiveRecord::Migration
def self.up
add_column ''products'', ''backlog_items_count'', :integer, :default =>
0
end
def self.down
remove_column ''products'', ''backlog_items_count''
end
end
What I want to do in that is automatically update the
backlog_items_count on the way through the script, so in my console I
tried the fo...