Rails 7 introduces cssbundling-rails
and jsbundling-rails
packages. We now use the Tailwind CLI and esbuild for Javascript. It's much, much faster and configurable.
We've removed Webpacker, but you can use webpack with jsbundling-rails if you would like.
Use bin/dev
to run the Rails server along with the CSS & JS watchers in development.
- TailwindCSS has been moved to
app/assets/application.tailwind.css
tailwind.config.js
has been moved to the root- Sass has been removed and CSS is now processed through postcss only (using the Tailwind CLI)
- Javascript packs are defined in
esbuild.config.js
- Assets are compiled and output to the
app/assets/builds
directory and served by the asset pipeline. - Webpacker pack tags have been replaced with asset pipeline tags
The Pay 3.0 upgrade migrates data from the Account model to the new Pay::Customer model and reassociates charges and subscriptions. It also switches generic trials to use the new fake_processor
in Pay.
You can skip this if you aren't using payments in your app yet.
To upgrade, you'll want to do a few things:
- Review
20210805001857_upgrade_to_pay_v3.rb
. This migration handles all the data migration to the new tables. - Test the migration against your local database. Sync your production database locally to test against it.
- Test
rails pay:payment_methods:sync_default
in development to make sure it successfully syncs the default payment method for each customer. - Run the migration in production
- Run
rails pay:payment_methods:sync_default
in production to sync default payment methods.