Sha256: 5609c81a8ce100af96b1eb2a7488678f1a39c379069d26d044916cbb0454c055

Contents?: true

Size: 658 Bytes

Versions: 7

Compression:

Stored size: 658 Bytes

Contents

class CreateOtherFiles < ActiveRecord::Migration[5.2]
  def change
    create_table :pageflow_other_files do |t|
      t.belongs_to :entry, index: true
      t.belongs_to :uploader, index: true

      t.bigint 'parent_file_id'
      t.string 'parent_file_model_type'

      t.string 'state'
      t.string 'rights'

      t.string 'attachment_on_s3_file_name'
      t.string 'attachment_on_s3_content_type'
      t.bigint 'attachment_on_s3_file_size'
      t.datetime 'attachment_on_s3_updated_at'

      t.timestamps

      t.index ['parent_file_id', 'parent_file_model_type'], name: 'index_other_files_on_parent_id_and_parent_model_type'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pageflow-17.0.4 db/migrate/20230120092923_create_other_files.rb
pageflow-17.0.3 db/migrate/20230120092923_create_other_files.rb
pageflow-17.0.2 db/migrate/20230120092923_create_other_files.rb
pageflow-17.0.1 db/migrate/20230120092923_create_other_files.rb
pageflow-17.0.0 db/migrate/20230120092923_create_other_files.rb
pageflow-16.2.0 db/migrate/20230120092923_create_other_files.rb
pageflow-16.1.0 db/migrate/20230120092923_create_other_files.rb