提交 0e97e308 编写于 作者: M 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.
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册