Skip to content

Commit

Permalink
Fix typo in Migration to ActiveStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWatling authored and mike-burns committed Apr 12, 2019
1 parent fdbaefd commit 1949da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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::Attachement` and
ActiveStorage automatically declares `ActiveStorage::Attachment` and
`ActiveStorage::Blob` relationships to your models, along with eager-loading
scopes.

Expand Down

0 comments on commit 1949da3

Please sign in to comment.