The way to implement arrays in ActiveRecord is via has_many.
But, normally Ruby arrays keep the order of elements, while has_many do
This is not just a matter of “order by” clause.
At every update one needs to index database table rows properly, so that
“order by” would work.
Thanks in advance.