Sha256: 744f06be994744cd3edd5dba1ac3525e9967cd5f869a65dfa005df1a28b9533a
Contents?: true
Size: 571 Bytes
Versions: 16
Compression:
Stored size: 571 Bytes
Contents
class MoveQbrickAssets < ActiveRecord::Migration def old_qbrick_assets_dir File.join(Rails.root,'public/uploads/qbrick') end def new_qbrick_assets_dir File.join(Rails.root,'public/uploads/cms') end def up if File.exists? old_qbrick_assets_dir puts "Moving Qbrick Assets from #{old_qbrick_assets_dir} to #{new_qbrick_assets_dir}" File.rename old_qbrick_assets_dir, new_qbrick_assets_dir end end def down if File.exists? new_qbrick_assets_dir File.rename new_qbrick_assets_dir, old_qbrick_assets_dir end end end
Version data entries
16 entries across 16 versions & 1 rubygems