tracks/db/migrate/20150805144100_create_attachments.rb

10 lines
205 B
Ruby
Raw Permalink Normal View History

2019-05-13 18:42:57 +02:00
class CreateAttachments < ActiveRecord::Migration[5.2]
def change
create_table :attachments do |t|
t.references :todo, index: true
t.attachment :file
t.timestamps
end
end
end