Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Name both version constants the generator reads

jaysbeekay4b1d282d99ce
diff --git a/docs/api/rails_provider_generator.md b/docs/api/rails_provider_generator.md
index e8c8416b24..fdfa33f6b4 100644
--- a/docs/api/rails_provider_generator.md
+++ b/docs/api/rails_provider_generator.md
@@ -168,8 +168,9 @@ This single command generates:
**File:** `db/migrate/xxx_create_my_bank_tables_and_accounts.rb`
Creates two complete tables with all necessary fields. The generator writes the
-Rails version in use when it runs (`Rails::VERSION::MAJOR.MINOR`), so a provider
-generated on a later Rails will show that version here instead of `[8.1]`. The
+Rails version in use when it runs, from `Rails::VERSION::MAJOR` and
+`Rails::VERSION::MINOR` joined by a dot, so a provider generated on a later
+Rails will show that version here instead of `[8.1]`. The
version in any generated migration is then fixed — it pins the semantics the
migration was written against and is not rewritten by later upgrades.