Sha256: c1a31ac5bf46928b3f9f634c30c627a68b4e75ea02518b3f2657cbca4c0a4085
Contents?: true
Size: 284 Bytes
Versions: 20
Compression:
Stored size: 284 Bytes
Contents
class RemoveLeftoverTokens < ActiveRecord::Migration def up existing_tokens = Host::Managed.all.map(&:token).compact if existing_tokens.empty? Token.delete_all else Token.where('id not in (?)', existing_tokens).delete_all end end def down end end
Version data entries
20 entries across 20 versions & 1 rubygems