fixes #2197
This commit is contained in:
14
db/migrate/20140701224800_create_forum_topic_visits.rb
Normal file
14
db/migrate/20140701224800_create_forum_topic_visits.rb
Normal 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
|
||||
Reference in New Issue
Block a user