Skip to content

Commit b4ab313

Browse files
Update setup.md
Minor typo
1 parent 7e93c88 commit b4ab313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/setup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ Stapler works via the use of traits. In order to add file uploading capabilitie
3030
```
3131

3232
### Database Tables
33-
A model can have multiple attachments defined (avatar, photo, foo, etc) and in turn each attachment can have multiple sizes (styles) defined. When an image or file is uploaded, Stapler will handle all the file processing (moving, resizing, etc) and provide an attachment object (as a model property) with methods for working with the uploaded file. To accomplish this, four fields (named after the attachemnt) will need to be created in the corresponding table for any model/entity containing a file attachment. For example, for an attachment named 'avatar' defined inside a model named 'User', the following fields would need to be added to the 'users' table:
33+
A model can have multiple attachments defined (avatar, photo, foo, etc) and in turn each attachment can have multiple sizes (styles) defined. When an image or file is uploaded, Stapler will handle all the file processing (moving, resizing, etc) and provide an attachment object (as a model property) with methods for working with the uploaded file. To accomplish this, four fields (named after the attachment) will need to be created in the corresponding table for any model/entity containing a file attachment. For example, for an attachment named 'avatar' defined inside a model named 'User', the following fields would need to be added to the 'users' table:
3434

3535
* (string) avatar_file_name
3636
* (integer) avatar_file_size
3737
* (string) avatar_content_type
38-
* (timestamp) avatar_updated_at
38+
* (timestamp) avatar_updated_at

0 commit comments

Comments
 (0)