mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-20 06:08:08 +01:00
add attachment model and add paperclip
This commit is contained in:
parent
013b260a1b
commit
76de5bf2b3
8 changed files with 78 additions and 22 deletions
9
db/migrate/20140703191545_create_attachments.rb
Normal file
9
db/migrate/20140703191545_create_attachments.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue