diff --git a/db/migrate/20140828200231_make_url_col_bigger_in_permalinks.rb b/db/migrate/20140828200231_make_url_col_bigger_in_permalinks.rb new file mode 100644 index 00000000000..f2767d1a2a8 --- /dev/null +++ b/db/migrate/20140828200231_make_url_col_bigger_in_permalinks.rb @@ -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