tracks/db/migrate/20140703191545_create_attachments.rb
2015-08-04 12:46:38 +02:00

9 lines
200 B
Ruby

class CreateAttachments < ActiveRecord::Migration
def change
create_table :attachments do |t|
t.references :todo, index: true
t.attachment :file
t.timestamps
end
end
end