FIX: permalinks table: increase limit of url column, make url index unique
This commit is contained in:
parent
14890a6002
commit
464a922910
|
@ -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…
Reference in New Issue