Change column type to binary from string

This commit is contained in:
Shinya Maeda 2018-02-28 20:49:50 +09:00
parent b5f5b6dc50
commit c2954f3815
2 changed files with 2 additions and 3 deletions

View File

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

View File

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