7 lines
184 B
7 lines
184 B
6 years ago
|
class DeleteNoneMyshixunGames < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
games = Game.where.not(myshixun_id: Myshixun.where(nil).pluck(:id))
|
||
|
games.destroy_all
|
||
|
end
|
||
|
end
|