From c2954f38150fa5654fe63dd37f36de550e5f3679 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Wed, 28 Feb 2018 20:49:50 +0900 Subject: [PATCH] Change column type to binary from string --- db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb | 3 +-- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb b/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb index 30973f6f5c5..dd1b9339b28 100644 --- a/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb +++ b/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb @@ -2,7 +2,6 @@ class AddChecksumToCiJobArtifacts < ActiveRecord::Migration DOWNTIME = false def change - add_column :ci_job_artifacts, :checksum, :string, limit: 64 + add_column :ci_job_artifacts, :checksum, :binary end end - diff --git a/db/schema.rb b/db/schema.rb index 6a752593c96..bfe95199e83 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -346,7 +346,7 @@ ActiveRecord::Schema.define(version: 20180304204842) do t.datetime_with_timezone "updated_at", null: false t.datetime_with_timezone "expire_at" t.string "file" - t.string "checksum", limit: 64 + t.binary "checksum" end add_index "ci_job_artifacts", ["expire_at", "job_id"], name: "index_ci_job_artifacts_on_expire_at_and_job_id", using: :btree