2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/db/migrate/20140828172407_create_permalinks.rb

15 lines
299 B
Ruby
Raw Normal View History

class CreatePermalinks < ActiveRecord::Migration[4.2]
def change
create_table :permalinks do |t|
t.string :url, null: false
t.integer :topic_id
t.integer :post_id
t.integer :category_id
2017-08-08 00:48:36 +09:00
t.timestamps null: false
end
add_index :permalinks, :url
end
end