aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorPhilip Arndt <p@arndt.io>2013-09-14 10:00:42 +1200
committerPhilip Arndt <p@arndt.io>2013-09-16 04:56:47 +1200
commita8b5bce609089af8795768230c7dd3a9b87cd5e0 (patch)
tree22a2a154da2b48988c9c4e05600e52fa1b884bf1 /db
parent5ae082d79e554d3449083aa70ef64ef5d677759a (diff)
downloadrefinerycms-blog-a8b5bce609089af8795768230c7dd3a9b87cd5e0.tar.gz
refinerycms-blog-a8b5bce609089af8795768230c7dd3a9b87cd5e0.tar.bz2
refinerycms-blog-a8b5bce609089af8795768230c7dd3a9b87cd5e0.zip
Supported Rails 4 and Refinery 3.0.0.dev
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20110803223522_create_blog_structure.rb8
1 files changed, 4 insertions, 4 deletions
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