Sha256: 4873c3e4735a621e9d1ac06622fb12a4c1c96db563240c74f026f938eebdc81f

Contents?: true

Size: 345 Bytes

Versions: 7

Compression:

Stored size: 345 Bytes

Contents

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
card-1.18.6 db/migrate_core_cards/20130910183318_move_styles_to_content.rb
card-1.18.5 db/migrate_core_cards/20130910183318_move_styles_to_content.rb
card-1.18.4 db/migrate_core_cards/20130910183318_move_styles_to_content.rb
card-1.18.3 db/migrate_core_cards/20130910183318_move_styles_to_content.rb
card-1.18.2 db/migrate_core_cards/20130910183318_move_styles_to_content.rb
card-1.18.1 db/migrate_core_cards/20130910183318_move_styles_to_content.rb
card-1.18.0 db/migrate_core_cards/20130910183318_move_styles_to_content.rb