rails/activerecord/lib
alpaca-tc f5c1222660 Adds support USING INDEX for unique constraints in PostgreSQL.
Adds `:using_index` option to use an existing index when defining a unique constraint.
If you want to change an existing unique index to deferrable, you can use :using_index to create deferrable unique constraints.

```ruby
add_unique_key :users, deferrable: :immediate, using_index: 'unique_index_name'
```

A unique constraint internally constructs a unique index.
If an existing unique index has already been created, the unique constraint
can be created much faster, since there is no need to create the unique index
when generating the constraint.
2023-04-19 13:48:09 +09:00
..
active_record Adds support USING INDEX for unique constraints in PostgreSQL. 2023-04-19 13:48:09 +09:00
arel Add docs on Arel.sql binding parameters and + 2023-03-22 11:19:51 +01:00
rails/generators Delegate application record generator description to orm hooked generator. 2022-09-08 18:19:51 -05:00
active_record.rb Run after_commit callbacks defined on models in the correct order 2023-04-05 14:21:33 -06:00
arel.rb Refer to stable guide for ARel security 2023-02-04 09:01:21 +09:00