tracks/db/migrate/20150805144100_create_attachments.rb
2019-05-13 18:42:57 +02:00

9 lines
205 B
Ruby

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