mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 22:53:56 +08:00
15 lines
294 B
Ruby
15 lines
294 B
Ruby
class CreatePermalinks < ActiveRecord::Migration
|
|
def change
|
|
create_table :permalinks do |t|
|
|
t.string :url, null: false
|
|
t.integer :topic_id
|
|
t.integer :post_id
|
|
t.integer :category_id
|
|
|
|
t.timestamps null: false
|
|
end
|
|
|
|
add_index :permalinks, :url
|
|
end
|
|
end
|