tracks/db/migrate/20150805144100_create_attachments.rb
2019-12-18 09:49:57 -06:00

10 lines
219 B
Ruby

# typed: true
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