mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
10 lines
200 B
Ruby
10 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
|