Rails 8 Adds if_not_exists Option On The add_enum_value.
Rails 8 introduces if_not_exists option on add_enum_value, we can now safely add a new enum value, preventing errors if the value already exists.Filter and Require Params in Rails 8 with Parameters#expect
Learn how Rails 8's Parameters#expect enhances parameter handling to safely filter and require params, improving security and reducing application errors.Rails 8 Allows drop_table To Accept An Array Of Table Names.
Rails 8 allows dropping multiple tables in one call with drop_table by accepting an array of table names in a single migration.Implementing Passwordless Authentication with WebAuthn in Rails
Learn how to set up WebAuthn in Rails for passwordless authentication, offering a secure and seamless login experience using biometric or hardware-based credentials.Rails 8 Adds Ability To Use Multiple Rate Limits Per Controller.
Rails 8 introduces the ability to define multiple rate limits within a controller, offering better flexibility for traffic management.Rails 7.2 Added Support For Explain Method To ActiveRecord::Relation.
With Rails 7.2, the object returned by explain now responds to pluck, first, last, average, count, maximum, minimum, and sum methods.Rails 7.1 Introduces By Argument For increment_counter And decrement_counter Methods.
With Rails 7.1, we can specify the amount to increment or decrement the value by simply passing the desired number as the `by` argument to increment_counter and decrement_counter.Rails 7.1 Adds Rails.application.deprecators Method
Rails.application.deprecators returns a collection of managed deprecators within our application, and allows us to add and retrieve individual deprecators with ease.Rails 7.1 Allows Validators To Accept Lambdas Without Record Argument
With Rails 7.1, we can use lambdas without record argument with ActiveModel validators.Rails 7.2 Prevents Job Scheduling Within Transactions.
In Rails 7.2, ActiveJob delays job enqueuing until the transaction is committed and drops the job if the transaction is rolled back.