add tag subscriptions

This commit is contained in:
albert
2010-03-09 15:58:24 -05:00
parent cd0aa75dbc
commit 65561a0779
7 changed files with 2987 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
class CreateTagSubscriptions < ActiveRecord::Migration
def self.up
create_table :tag_subscriptions do |t|
t.column :owner_id, :integer, :null => false
t.column :name, :string, :null => false
t.column :tag_query, :string, :null => false
t.column :post_ids, :text, :null => false
t.column :is_visible_on_profile, :boolean, :null => false, :default => true
t.timestamps
end
add_index :tag_subscriptions, :owner_id
add_index :tag_subscriptions, :name
end
def self.down
drop_table :tag_subscriptions
end
end

2805
db/test_structure.sql Normal file

File diff suppressed because it is too large Load Diff