FIX: permalinks table: increase limit of url column, make url index unique

This commit is contained in:
Neil Lalonde 2014-08-28 16:16:39 -04:00
parent 14890a6002
commit 464a922910
1 changed files with 10 additions and 0 deletions

View File

@ -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