Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Add change_column, change_column_null case #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seapy
Copy link

@seapy seapy commented Aug 17, 2018

…alue

* Change column with null false and default value lead to slow database, If table size is big.
  * Because this situation update to default value all rows
  * https://github.com/rails/rails/blob/5-2-stable/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb#L440
* `change_column` is direct call when newer version migration
  * if previous 5.2 migration call `change_column_null`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant