aboutsummaryrefslogblamecommitdiffstats
path: root/db/migrate/20140216165732_create_banners_banners_pages.refinery_banners.rb
blob: 175e5932a493ce5801ab2549ac541e5e09b0ac08 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                              
# This migration comes from refinery_banners (originally 2)
class CreateBannersBannersPages < ActiveRecord::Migration
  def self.up
    create_table :refinery_banners_pages, :id => false do |t|
      t.integer :page_id
      t.integer :banner_id
    end

    add_index :refinery_banners_pages, :page_id
    add_index :refinery_banners_pages, :banner_id
  end

  def self.down
    drop_table :refinery_banners_pages
  end
end