mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
``` change_column :topic_views, :ip_address, :inet, null: true ``` translates to ``` "ALTER TABLE \"topic_views\" ALTER COLUMN \"ip_address\" TYPE inet" ``` which locks the whole table while the migration is taking place.