aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/2_create_banners_banners_pages.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/2_create_banners_banners_pages.rb')
-rw-r--r--db/migrate/2_create_banners_banners_pages.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/2_create_banners_banners_pages.rb b/db/migrate/2_create_banners_banners_pages.rb
new file mode 100644
index 0000000..89af8e9
--- /dev/null
+++ b/db/migrate/2_create_banners_banners_pages.rb
@@ -0,0 +1,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