Sha256: df531511ccb28164325b8db02f0211fdceaccb276f6a0169078c9b255d519ff6

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

class CreateSimplecEmbeddedImages < ActiveRecord::Migration[5.0]
  def change
    create_table :simplec_embedded_images, id: :uuid, default: 'gen_random_uuid()' do |t|
      t.string :embeddable_type
      t.integer :embeddable_id
      t.string :asset_uid
      t.string :asset_name

      t.timestamps
    end

    add_index :simplec_embedded_images, [:embeddable_type, :embeddable_id],
      name: 'simplec_embedded_images_type_id_index'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simplec-0.2.0 db/migrate/20170809210304_create_simplec_embedded_images.rb
simplec-0.1.2 db/migrate/20170809210304_create_simplec_embedded_images.rb
simplec-0.1.0 db/migrate/20170809210304_create_simplec_embedded_images.rb