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

Unified Diff: db/migrate/003_create_photos.rb

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 4 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/003_create_photos.rb
===================================================================
--- db/migrate/003_create_photos.rb (revision 0)
+++ db/migrate/003_create_photos.rb (revision 0)
@@ -0,0 +1,16 @@
+class CreatePhotos < ActiveRecord::Migration
+ def self.up
+ create_table :photos do |t|
+ t.integer :news_item_id
+ t.string :image
+ t.string :description
+ t.integer :created_by_id
+ t.integer :updated_by_id
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :photos
+ end
+end

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