Has_many and collection_singular_ids with nil
For example

    a=User.new
    a.accounts_ids
    # SELECT `accounts`.id FROM `accounts` WHERE `accounts`.`user_id` IS NULL
    # So I have array with all not associated accounts WHY???
    a.accounts.empty?
    # true
    a.accounts_ids << 124
    a.accounts_ids
    # [124]
    a.accounts.empty?
    # false

So why does Rails work so strangely? Why did I have a lot of accounts_ids when hadn't any accounts?

Has_many and collection_singular_ids with nil
===

For example

    a=User.new
    a.accounts_ids
    # SELECT `accounts`.id FROM `accounts` WHERE `accounts`.`user_id` IS NULL
    # So I have array with all not associated accounts WHY???
    a.accounts.empty?
    # true
    a.accounts_ids << 124
    a.accounts_ids
    # [124]
    a.accounts.empty?
    # false

So why does Rails work so strangely? Why did I have a lot of accounts_ids when hadn't any accounts?
