Sha256: 75b2f10e6b2e3e8c14766f0fe64bab846a49aa2e1dd439de697b8f63d06f1f31

Contents?: true

Size: 488 Bytes

Versions: 7

Compression:

Stored size: 488 Bytes

Contents

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

class MoveStylesToContent < ActiveRecord::Migration
  include Wagn::MigrationHelper
  def up
    contentedly do
      dir = "#{Wagn.gem_root}/db/migrate_cards/data/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

  def down
    contentedly do
      
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wagn-1.12.13 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.12.12 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.12.11 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.12.10 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.12.9 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.12.8 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.12.7 db/migrate_cards/20130910183318_move_styles_to_content.rb