Commit 0e97e308 authored by Michael Kozono's avatar Michael Kozono

Fix MySQL path field length

I believe the field only needs to fit 519 at the moment but I’m rounding up to be a little safer.

See the migration spec for more detail on the magic number 519.
parent 3dc0b118
......@@ -12,7 +12,7 @@ class TrackUntrackedUploads < ActiveRecord::Migration
def up
unless table_exists?(:untracked_files_for_uploads)
create_table :untracked_files_for_uploads do |t|
t.string :path, null: false
t.string :path, limit: 600, null: false
t.boolean :tracked, default: false, null: false
t.timestamps_with_timezone null: false
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment