mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
FIX: permalinks table: increase limit of url column, make url index unique
This commit is contained in:
parent
14890a6002
commit
464a922910
1 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
class MakeUrlColBiggerInPermalinks < ActiveRecord::Migration
|
||||
def up
|
||||
remove_index :permalinks, :url
|
||||
change_column :permalinks, :url, :string, limit: 1000, null: false
|
||||
add_index :permalinks, :url, unique: true
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue