aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20130611193607_create_page_images.refinery_page_images.rb
blob: 871bee3eb1ce333742adf399485d7adf5fe04a45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# This migration comes from refinery_page_images (originally 20101014230041)
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