From a8b5bce609089af8795768230c7dd3a9b87cd5e0 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Sat, 14 Sep 2013 10:00:42 +1200 Subject: Supported Rails 4 and Refinery 3.0.0.dev --- db/migrate/20110803223522_create_blog_structure.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'db') diff --git a/db/migrate/20110803223522_create_blog_structure.rb b/db/migrate/20110803223522_create_blog_structure.rb index 37f4bd7..43488f9 100644 --- a/db/migrate/20110803223522_create_blog_structure.rb +++ b/db/migrate/20110803223522_create_blog_structure.rb @@ -1,7 +1,7 @@ class CreateBlogStructure < ActiveRecord::Migration def up - create_table :refinery_blog_posts, :id => true do |t| + create_table :refinery_blog_posts do |t| t.string :title t.text :body t.boolean :draft @@ -11,7 +11,7 @@ class CreateBlogStructure < ActiveRecord::Migration add_index :refinery_blog_posts, :id - create_table :refinery_blog_comments, :id => true do |t| + create_table :refinery_blog_comments do |t| t.integer :blog_post_id t.boolean :spam t.string :name @@ -24,14 +24,14 @@ class CreateBlogStructure < ActiveRecord::Migration add_index :refinery_blog_comments, :id add_index :refinery_blog_comments, :blog_post_id - create_table :refinery_blog_categories, :id => true do |t| + create_table :refinery_blog_categories do |t| t.string :title t.timestamps end add_index :refinery_blog_categories, :id - create_table :refinery_blog_categories_blog_posts, :id => true do |t| + create_table :refinery_blog_categories_blog_posts do |t| t.integer :blog_category_id t.integer :blog_post_id end -- cgit v1.2.3