Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
1949da33
Unverified
Commit
1949da33
authored
Mar 13, 2019
by
James Watling
Committed by
Mike Burns
Apr 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in Migration to ActiveStorage
parent
fdbaefd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
MIGRATING.md
+2
-2
No files found.
MIGRATING.md
View file @
1949da33
...
...
@@ -116,7 +116,7 @@ create_table "active_storage_blobs", force: :cascade do |t|
end
```
So, assuming you want to leave the files in the exact same place,
_this is
So, assuming you want to leave the files in the exact same place, _this is
your migration_. Otherwise, see the next section first and modify the migration
to taste.
...
...
@@ -406,7 +406,7 @@ Then you'll end up with an n+1 as you load each attachment in the loop.
So while the controller and model will work without change, you will want to
double-check your loops and add `includes` as needed.
ActiveStorage automatically declares `ActiveStorage::Attach
e
ment` and
ActiveStorage automatically declares `ActiveStorage::Attachment` and
`ActiveStorage::Blob` relationships to your models, along with eager-loading
scopes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment