Sha256: f68a5dd1a7b7905c4fbd0447d27e07c34e1c878776a83385a6e69abf80416435

Contents?: true

Size: 531 Bytes

Versions: 15

Compression:

Stored size: 531 Bytes

Contents

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

class FixSkinCodenames < Card::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

15 entries across 15 versions & 1 rubygems

Version Path
card-1.100.0 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.99.6 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.99.5 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.99.4 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.99.3 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.99.2 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.99.1 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.99.0 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.98.3 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.98.2 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.98.1 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.98.0 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.97.0.1 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.97.0 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.96.8 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb