Sha256: 480275891c44e6eceafce6d6b483dfc0d764869180c5fc2844f1cfdbad1443b9

Contents?: true

Size: 533 Bytes

Versions: 5

Compression:

Stored size: 533 Bytes

Contents

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

class FixSkinCodenames < Cardio::Migration::Core
  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

5 entries across 5 versions & 1 rubygems

Version Path
card-1.101.4 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.101.3 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.101.2 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.101.1 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.101.0 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb