mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:43:49 +08:00
19 lines
537 B
Ruby
19 lines
537 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class CreateExternalUploadStubs < ActiveRecord::Migration[6.1]
|
||
|
def change
|
||
|
create_table :external_upload_stubs do |t|
|
||
|
t.string :key, null: false
|
||
|
t.string :original_filename, null: false
|
||
|
t.integer :status, default: 1, null: false, index: true
|
||
|
t.uuid :unique_identifier, null: false
|
||
|
t.integer :created_by_id, null: false, index: true
|
||
|
t.string :upload_type, null: false
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :external_upload_stubs, [:key], unique: true
|
||
|
end
|
||
|
end
|