Sha256: df66c6f4ec45ca84748055b5530bf05d96dc53775bb3d7881b5c40fe362f4031

Contents?: true

Size: 539 Bytes

Versions: 7

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

# This migration comes from spina (originally 10)
class CreateSpinaImageCollections < ActiveRecord::Migration[5.2]
  def change
    create_table :spina_image_collections, &:timestamps

    create_table 'spina_image_collections_images', id: :serial, force: :cascade do |t|
      t.integer 'image_collection_id'
      t.integer 'image_id'
      t.integer 'position'
    end

    add_index :spina_image_collections_images, :image_collection_id
    add_index :spina_image_collections_images, :image_id
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.3.1 spec/dummy/db/migrate/20190513103738_create_spina_image_collections.spina.rb
spina-admin-conferences-blog-0.2.0 spec/dummy/db/migrate/20190513103738_create_spina_image_collections.spina.rb
spina-admin-conferences-blog-0.1.4 spec/dummy/db/migrate/20190513103738_create_spina_image_collections.spina.rb
spina-admin-conferences-blog-0.1.3 spec/dummy/db/migrate/20190513103738_create_spina_image_collections.spina.rb
spina-admin-conferences-blog-0.1.2 spec/dummy/db/migrate/20190513103738_create_spina_image_collections.spina.rb
spina-admin-conferences-blog-0.1.1 spec/dummy/db/migrate/20190513103738_create_spina_image_collections.spina.rb
spina-admin-conferences-blog-0.1.0 spec/dummy/db/migrate/20190513103738_create_spina_image_collections.spina.rb