Sha256: d3ebc017ac335c39be5a455dfd661376a021ae0f8eabb63f3f3e6ff6e9de718a

Contents?: true

Size: 338 Bytes

Versions: 6

Compression:

Stored size: 338 Bytes

Contents

class CreatePageImages < ActiveRecord::Migration
  def change
    create_table Refinery::ImagePage.table_name, :id => false do |t|
      t.integer :image_id
      t.integer :page_id
      t.integer :position
    end

    add_index Refinery::ImagePage.table_name, :image_id
    add_index Refinery::ImagePage.table_name, :page_id
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
refinerycms-page-images-3.0.0 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-2.1.1 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-2.1.0 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-resources-0.0.1 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-2.0.1 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-2.0.0 db/migrate/20101014230041_create_page_images.rb