Sha256: 1b4f70af61911fd3fed430ba387f4dc354899d788151cc182e85ace38280f3bc

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 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_attributes! codename: theme_name
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
card-1.96.7 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb
card-1.96.6 db/migrate_core_cards/20150510031118_fix_skin_codenames.rb