This commit is contained in:
r888888888
2014-07-08 10:20:01 -07:00
parent 3cac0458df
commit a6d69e63be
6 changed files with 114 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
class CreateForumTopicVisits < ActiveRecord::Migration
def change
create_table :forum_topic_visits do |t|
t.integer :user_id
t.integer :forum_topic_id
t.timestamp :last_read_at
t.timestamps
end
add_index :forum_topic_visits, :user_id
add_index :forum_topic_visits, :forum_topic_id
end
end