aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-03-14 23:28:59 +0900
committerre4k <re4k@re4k.info>2013-03-14 23:28:59 +0900
commit85079ba8a48160b43099f80b3d567c812d9099a8 (patch)
tree8cde057bfc7aa00c6e1c0f610a6da5aad1c2a5bd /db
parent2bf399afa9707b08523f538332657ee06156efb0 (diff)
downloadaclog-85079ba8a48160b43099f80b3d567c812d9099a8.tar.gz
Change Twitter Streaming API library to em-twitter
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130226151042_create_retweets.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/migrate/20130226151042_create_retweets.rb b/db/migrate/20130226151042_create_retweets.rb
index 6de664e..10ea615 100644
--- a/db/migrate/20130226151042_create_retweets.rb
+++ b/db/migrate/20130226151042_create_retweets.rb
@@ -5,6 +5,7 @@ class CreateRetweets < ActiveRecord::Migration
t.references :user, :limit => 8, :null => false
end
+ add_index :retweets, [:tweet_id, :user_id], :unique => true
add_index :retweets, :tweet_id
end
end