I have on my controller something like
@account = @user.accounts.first
where I only want to display the first item in the accounts array. But whenever I add a new account, @account now refers to the last item in the accounts array.
Locally, with SQLite3, it works correctly, @account always refers to the first item in the accounts array, but on heroku with postgresql, is when that happens.
Why this is happening?