Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorIlyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com>2011-07-02 09:32:23 +0400
committerIlyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com>2011-07-06 02:03:26 +0400
commit1e4ee472b70ca0899795c3582f79b796dc8f1c20 (patch)
treee824494e571adb461dcc5f37c36cdcd7673d3ff6 /db
parent77d28b411706a8590accf8a4b33cfe5c422117d6 (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.rb14
-rw-r--r--db/schema.rb7
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"