change_column_null
on a column with aNOT NULL
constraint is safe in Postgres 12+
- Improved comments in initializer
- Fixed string timeouts for Postgres
- Added warnings for missing and long lock timeouts
- Added install generator
- Fixed deprecation warnings with Ruby 2.7
- Added check for
add_reference
withforeign_key: true
- Increasing precision of
decimal
ornumeric
column is safe in Postgres 9.2+ - Making
decimal
ornumeric
column unconstrained is safe in Postgres 9.2+ - Changing between
timestamp
andtimestamptz
when session time zone is UTC in Postgres 12+ - Increasing the length of a
varchar
column from under 255 up to 255 in MySQL and MariaDB - Increasing the length of a
varchar
column over 255 in MySQL and MariaDB
- Fixed PostgreSQL version check
- Fixed timeouts for PostgreSQL
- Added
statement_timeout
andlock_timeout
- Adding a column with a non-null default value is safe in MySQL 8.0.12+ and MariaDB 10.3.2+
- Added
change_column_null
check for MySQL and MariaDB - Added
auto_analyze
for MySQL and MariaDB - Added
target_mysql_version
andtarget_mariadb_version
- Switched to
up
for backfilling
- Fixed migration name in error messages
- Added ability to disable checks
- Added Postgres-specific check for
change_column_null
- Added optional remove index check
- Allow
add_reference
with concurrent indexes
- Added
target_postgresql_version
- Added
unscoped
to backfill instructions
- Added check for
add_foreign_key
- Fixed instructions for adding default value with NOT NULL constraint
- Removed support for Rails 4.2
- Fixed error with
remove_column
andtype
argument - Improved message customization
- Added support for custom checks
- Adding a column with a non-null default value is safe in Postgres 11+
- Added checks for
add_belongs_to
,remove_belongs_to
,remove_columns
, andremove_reference
- Customized messages
- Added check for
change_column_null
- Added support for alphabetize columns with Makara
- Fixed migration reversibility with
auto_analyze
- Friendlier output
- Better method of hooking into ActiveRecord
- Recommend
disable_ddl_transaction!
overcommit_db_transaction
- Suggest
jsonb
overjson
in Postgres 9.4+ - Changing
varchar
totext
is safe in Postgres 9.1+ - Do not check number of columns for unique indexes
- Added customizable error messages
- Updated instructions for adding a column with a default value
- Added
start_after
option
- Fixed error with
create_table
- Added check for executing arbitrary SQL
- Added check for
force
option withcreate_table
- Added
auto_analyze
option
- Adding an index to a newly created table is now safe
- Fixed error with Ruby 2.3 frozen strings
- Added alphabetize columns
- Disabled dangerous rake tasks in production
- Added ability to use
SAFETY_ASSURED
env var
- Skip checks on down migrations and rollbacks
- Added check for indexes with more than 3 columns
- Fixed
add_index
check for MySQL
- First release