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














                                                             
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