Sha256: 49964f59f3ea38f8f8861c82aa6f5ea3e9e88477f6e4a915488714f78fee2275

Contents?: true

Size: 337 Bytes

Versions: 9

Compression:

Stored size: 337 Bytes

Contents

class CreatePageImages < ActiveRecord::Migration

  def self.up
    create_table :image_pages, :id => false do |t|
      t.integer :image_id
      t.integer :page_id
      t.integer :position
    end

    add_index :image_pages, :image_id
    add_index :image_pages, :page_id
  end

  def self.down
    drop_table :image_pages
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-page-images-1.0.4 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-1.0.3 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-1.0.2 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-1.0.1 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-1.0 db/migrate/20101014230041_create_page_images.rb
refinerycms-page-images-0.9.9 db/migrate/create_page_images.rb
refinerycms-page-images-0.9.8 db/migrate/create_page_images.rb
refinerycms-page-images-0.9.7 db/migrate/create_page_images.rb
refinerycms-page-images-0.9.6 db/migrate/create_page_images.rb