updated tag unit tests

This commit is contained in:
albert
2010-02-11 14:59:58 -05:00
parent 2f3a6e4a8b
commit bed94a4e30
21 changed files with 731 additions and 269 deletions

View File

@@ -0,0 +1,19 @@
class CreateFavorites < ActiveRecord::Migration
def self.up
(0..9).each do |number|
create_table "favorites_#{number}" do |t|
t.column :post_id, :integer
t.column :user_id, :integer
end
add_index "favorites_#{number}", :post_id
add_index "favorites_#{number}", :user_id
end
end
def self.down
(0..9).each do |number|
drop_table "favorites_#{number}"
end
end
end