When using PostgreSQL array columns Show archive.org snapshot , you can set an array attribute to a value with square brackets:
Given there is a movie with the tags ["comedy", "drama" and "action"]
You can set has_many
associations by referring to multiple named records in square brackets:
Given there is a movie with the title "Sunshine"
And there is a movie with the title "Limitless"
And there is a movie with the title "Salt"
And there is a user with the favorite movies ["Sunshine", "Limitless" and "Salt"]
You no longer need to use quotes for number attributes:
Given there is an invoice with the year 2017 and the total 1234.5
Floating point values with be parsed as BigDecimal
.