Sha256: 3a062864dd1cdc5a4ef1c9ba7ff4ccedf37158565de2e55d001c7b6b1c062045

Contents?: true

Size: 546 Bytes

Versions: 4

Compression:

Stored size: 546 Bytes

Contents

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

class FixSkinCodenames < Cardio::Migration::Transform
  def up
    # This is needed because the bootswatch_themes migration removed codenames.
    # They were no longer needed for style handling but are still needed for images
    %w[bootstrap_default cerulean cosmo cyborg darkly flatly journal lumen paper readable
       sandstone simplex slate spacelab superhero united yeti].each do |theme_name|
      theme_name = "#{theme_name}_skin"
      Card.fetch(theme_name)&.update! codename: theme_name
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
card-1.108.1 mod/core/data/transform/20150510031118_fix_skin_codenames.rb
card-1.108.0 mod/core/data/transform/20150510031118_fix_skin_codenames.rb
card-1.107.0 mod/core/data/transform/20150510031118_fix_skin_codenames.rb
card-1.106.0 mod/core/data/transform/20150510031118_fix_skin_codenames.rb