diff options
author | Ilyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com> | 2011-07-02 09:32:23 +0400 |
---|---|---|
committer | Ilyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com> | 2011-07-06 02:03:26 +0400 |
commit | 1e4ee472b70ca0899795c3582f79b796dc8f1c20 (patch) | |
tree | e824494e571adb461dcc5f37c36cdcd7673d3ff6 /db | |
parent | 77d28b411706a8590accf8a4b33cfe5c422117d6 (diff) |
WIP you can now follow a tag, needs a clean up, and ajax love
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20110701215925_create_tag_followings.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 7 |
2 files changed, 21 insertions, 0 deletions
diff --git a/db/migrate/20110701215925_create_tag_followings.rb b/db/migrate/20110701215925_create_tag_followings.rb new file mode 100644 index 000000000..c8bb4afbe --- /dev/null +++ b/db/migrate/20110701215925_create_tag_followings.rb @@ -0,0 +1,14 @@ +class CreateTagFollowings < ActiveRecord::Migration + def self.up + create_table :tag_followings do |t| + t.integer :tag_id + t.integer :user_id + + t.timestamps + end + end + + def self.down + drop_table :tag_followings + end +end diff --git a/db/schema.rb b/db/schema.rb index 085facef9..a702f0281 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -326,6 +326,13 @@ ActiveRecord::Schema.define(:version => 20110705003445) do add_index "services", ["user_id"], :name => "index_services_on_user_id" + create_table "tag_followings", :force => true do |t| + t.integer "tag_id" + t.integer "user_id" + t.datetime "created_at" + t.datetime "updated_at" + end + create_table "taggings", :force => true do |t| t.integer "tag_id" t.integer "taggable_id" |