Files
nairobi/app/models/concerns
Javi Martín 74088ac949 Make random IDs with the same seed consistent
The order of the array before being shuffled needs to be the same if we
want to have the same array after being shuffled with a certain seed.

We were using `pluck(:id)`, which doesn't guarantee the order of the
elements returned.

Replacing it with `order(:id).pluck(:id)` adds an `ORDER BY` clause and
so guarantees the order of the elements.
2019-04-03 21:21:11 +02:00
..
2015-07-15 13:32:13 +02:00
2017-09-06 14:12:32 +02:00
2019-03-14 17:25:43 +01:00
2016-11-23 19:19:19 +01:00
2017-10-17 22:00:00 +02:00
2017-10-04 23:56:09 +02:00
2019-02-13 11:41:58 +01:00
2019-03-14 17:25:43 +01:00
2019-03-14 17:25:43 +01:00
2019-03-14 17:25:43 +01:00
2017-12-16 17:59:16 +01:00
2019-03-14 17:25:43 +01:00
2018-05-22 15:02:35 +02:00