Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15)

Unified Diff: db/migrate/002_create_news_items.rb

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: db/migrate/002_create_news_items.rb
===================================================================
--- db/migrate/002_create_news_items.rb (revision 0)
+++ db/migrate/002_create_news_items.rb (revision 0)
@@ -0,0 +1,18 @@
+class CreateNewsItems < ActiveRecord::Migration
+ def self.up
+ create_table :news_items do |t|
+ t.string :title
+ t.text :body
+ t.text :body_filtered
+ t.text :extended
+ t.text :extended_filtered
+ t.integer :created_by_id
+ t.integer :updated_by_id
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :news_items
+ end
+end

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497