Sha256: 43849f907a71d9a2e3cb6c7855dbc356b468c610d416b509b2de311d4aef785e

Contents?: true

Size: 437 Bytes

Versions: 4

Compression:

Stored size: 437 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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wagn-1.13.0 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.13.0.pre2 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.13.0.pre1 db/migrate_cards/20130910183318_move_styles_to_content.rb
wagn-1.13.0.pre db/migrate_cards/20130910183318_move_styles_to_content.rb