diff options
author | Joe Sak <joe@joesak.com> | 2011-07-18 14:56:46 -0500 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-07-18 14:56:51 -0500 |
commit | b78486ce1ede4e5c384a2e0561173549925d21a1 (patch) | |
tree | eb7cf4702c12502ccfc644071c8cebd01075c405 /db/migrate | |
parent | 98b6052f1f3ac9a99efd18f17d8d33d2da990589 (diff) | |
download | refinerycms-blog-b78486ce1ede4e5c384a2e0561173549925d21a1.tar.gz refinerycms-blog-b78486ce1ede4e5c384a2e0561173549925d21a1.tar.bz2 refinerycms-blog-b78486ce1ede4e5c384a2e0561173549925d21a1.zip |
categorization has_many :through should have an ID, and the relationship should be destroyed if the blog post or category is
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/1_create_blog_structure.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/1_create_blog_structure.rb b/db/migrate/1_create_blog_structure.rb index 197efb1..a93d2d4 100644 --- a/db/migrate/1_create_blog_structure.rb +++ b/db/migrate/1_create_blog_structure.rb @@ -30,7 +30,7 @@ class CreateBlogStructure < ActiveRecord::Migration add_index :blog_categories, :id - create_table :blog_categories_blog_posts, :id => false do |t| + create_table :blog_categories_blog_posts, :id => true do |t| t.integer :blog_category_id t.integer :blog_post_id end |