annotate models

This commit is contained in:
Régis Hanol
2013-06-17 02:48:58 +02:00
parent 510bac4b27
commit 454636abf1
9 changed files with 68 additions and 3 deletions

View File

@@ -2,3 +2,17 @@ class PostUpload < ActiveRecord::Base
belongs_to :post
belongs_to :upload
end
# == Schema Information
#
# Table name: post_uploads
#
# id :integer not null, primary key
# post_id :integer not null
# upload_id :integer not null
#
# Indexes
#
# idx_unique_post_uploads (post_id,upload_id) UNIQUE
#