Sha256: 20d0ee30999f9cb48020f49c04b35c63aca805dfbe376524dc10b0a5682d4f5c

Contents?: true

Size: 301 Bytes

Versions: 12

Compression:

Stored size: 301 Bytes

Contents

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

class MigrateSkins < Card::Migration::Core
  def up
    Card.search(link_to: "bootstrap default skin", type_id: Card::SkinID) do |card|
      card.drop_item! "bootstrap default skin"
      card.update_attributes! type_id: Card::CustomizedBootswatchSkinID
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
card-1.96.7 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.96.6 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.96.5 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.96.4 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.96.3 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.96.2 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.96.1 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.96.0 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.95.3 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.95.2 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.95.1 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb
card-1.95.0 mod/bootstrap/db/migrate_core_cards/20180601133753_migrate_skins.rb