Sha256: e74f3bbba72548e02ca2eae128c3fe0b63f2822d2e56ca17a9bb739867f493a6
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
module Hypershield class Railtie < Rails::Railtie rake_tasks do namespace :hypershield do task refresh: :environment do $stderr.puts "[hypershield] Refreshing schemas" Hypershield.refresh $stderr.puts "[hypershield] Success!" end end Rake::Task["db:migrate"].enhance do Rake::Task["hypershield:refresh"].invoke end Rake::Task["db:rollback"].enhance do Rake::Task["hypershield:refresh"].invoke end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hypershield-0.1.0 | lib/hypershield/railtie.rb |