typo in table name
This commit is contained in:
parent
316292c914
commit
31fef1a55d
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class UniqueIndexPostVisibilities < ActiveRecord::Migration
|
||||||
pv_ids.pop
|
pv_ids.pop
|
||||||
undesired_ids.concat(pv_ids)
|
undesired_ids.concat(pv_ids)
|
||||||
end
|
end
|
||||||
execute("DELETE FROM `post_visibilities` WHERE `post_visibiilties`.id IN (#{undesired_ids.join(",")});") unless undesired_ids.empty?
|
execute("DELETE FROM `post_visibilities` WHERE `post_visibilities`.id IN (#{undesired_ids.join(",")});") unless undesired_ids.empty?
|
||||||
|
|
||||||
|
|
||||||
remove_index :post_visibilities, [:aspect_id, :post_id]
|
remove_index :post_visibilities, [:aspect_id, :post_id]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue