Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 433 Bytes

README.md

File metadata and controls

13 lines (12 loc) · 433 Bytes

innumerate

Set per-column statistics targets for PostgreSQL in Rails

In your ActiveRecord migrations, you can use:

set_statistics_target :users, :email, 1000

... to set the statistics target of users.email to 1000. To make the migration reversible, use the old_target option:

set_statistics_target :users, :email, 1000, old_target: -1

Note that -1 means "use the server's default statistics target."