diff options
Diffstat (limited to 'db/migrate/20130611193607_create_page_images.refinery_page_images.rb')
-rw-r--r-- | db/migrate/20130611193607_create_page_images.refinery_page_images.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20130611193607_create_page_images.refinery_page_images.rb b/db/migrate/20130611193607_create_page_images.refinery_page_images.rb new file mode 100644 index 0000000..871bee3 --- /dev/null +++ b/db/migrate/20130611193607_create_page_images.refinery_page_images.rb @@ -0,0 +1,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 |