Change column type to binary from string
This commit is contained in:
parent
b5f5b6dc50
commit
c2954f3815
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue