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

Unified Diff: db/migrate/005_tags_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/005_tags_photos.rb
===================================================================
--- db/migrate/005_tags_photos.rb (revision 0)
+++ db/migrate/005_tags_photos.rb (revision 0)
@@ -0,0 +1,13 @@
+class TagsPhotos < ActiveRecord::Migration
+ def self.up
+ create_table :tags_photos, :id => false do |t|
+ t.integer :tag_id
+ t.integer :photo_id
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :tags_photos
+ end
+end

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