1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Andrey Novikov e5a5cc4835 Add support for PostgreSQL interval datatype.
Add support for PostgreSQL `interval` data type with conversion to
`ActiveSupport::Duration` when loading records from database and
serialization to ISO 8601 formatted duration string on save.
Add support to define a column in migrations and get it in a schema dump.
Optional column precision is supported.

To use this in 6.1, you need to place the next string to your model file:

    attribute :duration, :interval

To keep old behavior until 6.2 is released:

    attribute :duration, :string
2020-09-30 14:54:55 -07:00
..
active_record Add support for PostgreSQL interval datatype. 2020-09-30 14:54:55 -07:00
arel Properly support reverse_order on relations with nulls_first or nulls_last calls 2020-09-08 11:20:46 -04:00
rails/generators The abstract parent class file generated via generator should not be pluralized 2020-08-02 22:25:57 +05:30
active_record.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
arel.rb Merge pull request #38719 from eileencodes/refactor-fetch_attribute 2020-03-13 16:26:49 -04:00