mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
An attachment has write permissions on group so that managing attachments work from different users in same group, i.e. user apache and user mail.
9 lines
200 B
Ruby
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
|