mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
473a64d39d
hotness. Note: People on Heroku will have to update their jobs to the new structure in Heroku.md
12 lines
343 B
Ruby
12 lines
343 B
Ruby
class CreateHotTopics < ActiveRecord::Migration
|
|
def change
|
|
create_table :hot_topics, force: true do |t|
|
|
t.integer :topic_id, null: false
|
|
t.integer :category_id, null: true
|
|
t.float :score, null: false
|
|
end
|
|
|
|
add_index :hot_topics, :topic_id, unique: true
|
|
add_index :hot_topics, :score, order: 'desc'
|
|
end
|
|
end
|