Skip to content

Commit 93eabd2

Browse files
committed
Update upgrade guide
1 parent ab6dea7 commit 93eabd2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

UPGRADE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
Follow this guide to upgrade older Pay versions. These may require database migrations and code changes.
44

5+
## Pay 11
6+
7+
Associations on Pay models have been renamed to use the `pay_` prefix.
8+
9+
```ruby
10+
# old
11+
@user.charges
12+
# new
13+
@user.pay_charges
14+
15+
# old
16+
@user.subscriptions
17+
# new
18+
@user.pay_subscriptions
19+
```
20+
521
## Pay 10.1
622

723
Pay now uses the Stripe `charge.updated` webhook to save Charge balance transactions. Make sure you're sending this webhook to keep these records up-to-date.

0 commit comments

Comments
 (0)