mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-23 22:12:30 -05:00
15 lines
282 B
Ruby
15 lines
282 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
|
||
|
end
|
||
|
|
||
|
add_index :permalinks, :url
|
||
|
end
|
||
|
end
|