Sha256: 8ad8bcc6466696c933756309a930287e5bf89a77e06af28d8df3af07d6477fc2

Contents?: true

Size: 219 Bytes

Versions: 8

Compression:

Stored size: 219 Bytes

Contents

# -*- encoding : utf-8 -*-

class EnabledRoles < Cardio::Migration::Core
  def up
    Card.search type_id: Card::SessionID do |card|
      card.update_column :trash, true unless card.codename.present?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.105.6 db/migrate_core_cards/20190528131330_enabled_roles.rb
card-1.105.5 db/migrate_core_cards/20190528131330_enabled_roles.rb
card-1.105.4 db/migrate_core_cards/20190528131330_enabled_roles.rb
card-1.105.3 db/migrate_core_cards/20190528131330_enabled_roles.rb
card-1.105.2.pre1 db/migrate_core_cards/20190528131330_enabled_roles.rb
card-1.105.2 db/migrate_core_cards/20190528131330_enabled_roles.rb
card-1.105.1 db/migrate_core_cards/20190528131330_enabled_roles.rb
card-1.105.0 db/migrate_core_cards/20190528131330_enabled_roles.rb