add attachment model and add paperclip

This commit is contained in:
Reinier Balt 2014-07-03 23:21:39 +02:00
parent 013b260a1b
commit 76de5bf2b3
8 changed files with 78 additions and 22 deletions

View file

@ -0,0 +1,9 @@
class CreateAttachments < ActiveRecord::Migration
def change
create_table :attachments do |t|
t.references :todo, index: true
t.attachment :file
t.timestamps
end
end
end