fixed tag subscription tests

This commit is contained in:
albert
2011-07-20 17:23:38 -04:00
parent c453e7db0f
commit 6791d4d113
13 changed files with 99 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
class CreateTagSubscriptions < ActiveRecord::Migration
def self.up
create_table :tag_subscriptions do |t|
t.column :owner_id, :integer, :null => false
t.column :creator_id, :integer, :null => false
t.column :name, :string, :null => false
t.column :tag_query, :string, :null => false
t.column :post_ids, :text, :null => false
@@ -9,7 +9,7 @@ class CreateTagSubscriptions < ActiveRecord::Migration
t.timestamps
end
add_index :tag_subscriptions, :owner_id
add_index :tag_subscriptions, :creator_id
add_index :tag_subscriptions, :name
end