Sha256: fff37574b9e985f19e9ae03281ebeeaba6134ead424b186b061537c4920821f3
Contents?: true
Size: 693 Bytes
Versions: 4
Compression:
Stored size: 693 Bytes
Contents
# frozen_string_literal: true class CreateAttachyFilesTable < ActiveRecord::Migration[5.0] def change create_table :attachy_files do |t| t.integer :height , null: false t.integer :width , null: false t.string :format , null: false t.string :public_id , null: false t.string :resource_type, null: false, default: :image t.string :scope , null: false t.string :version , null: false t.references :attachable, polymorphic: true t.timestamps null: false end add_index :attachy_files, %i[attachable_type attachable_id scope], name: :index_attachy_files_on_attachable_and_scope end end
Version data entries
4 entries across 4 versions & 1 rubygems