Sha256: b70709e665b27b58a7ee4ff582e98c95c5c5916ec28126e8fd7e4a6232485e07

Contents?: true

Size: 334 Bytes

Versions: 15

Compression:

Stored size: 334 Bytes

Contents

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

class MoveStylesToContent < Card::Migration::Core
  def up
    dir = File.join data_path, "1.12_stylesheets"
    %w(right_sidebar common classic_cards traditional).each do |sheetname|
      Card["style: #{sheetname}"].update! codename: nil, content: File.read("#{dir}/#{sheetname}.scss")
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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