1 2 3 4 5
class RemoveInvalidBuild < ActiveRecord::Migration def change execute "DELETE FROM builds WHERE commit_id is NULL" end end