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