Sha256: 5fc719f7a479c9bb0e7ac3b0db7e72b31cae66e90f24b72c588e7b11e0cbffef
Contents?: true
Size: 325 Bytes
Versions: 12
Compression:
Stored size: 325 Bytes
Contents
# -*- encoding : utf-8 -*- class EnabledRoles < Card::Migration::Core def up ensure_trait "*enabled roles", "enabled_roles", default: { type_id: Card::SessionID } Card.search type_id: Card::SessionID do |card| card.update_column :trash, true unless card.codename.present? end end end
Version data entries
12 entries across 12 versions & 1 rubygems