mysql2 result is not an array
This commit is contained in:
parent
2faf3fe10d
commit
316292c914
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class UniqueIndexPostVisibilities < ActiveRecord::Migration
|
|||
SELECT `post_visibilities`.id FROM `post_visibilities`
|
||||
WHERE `post_visibilities`.post_id = #{post_id}
|
||||
AND `post_visibilities`.aspect_id = #{aspect_id};"
|
||||
)
|
||||
).to_a.flatten!
|
||||
pv_ids.pop
|
||||
undesired_ids.concat(pv_ids)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue