Sha256: b5cc87ff09b006f6658e599e85911cc7cc29f98545246a47c73800a72f935d64
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
namespace :uuids do def app @app ||= ( Rake::Task.task_defined?("railties:install:migrations") ? "" : "app:" ) end desc "Installs the uuids gem inside a Rails application" task install: %w(environment) do Rake::Task["#{ app }railties:install:migrations"].reenable system "rake #{ app }uuids:install:migrations" system "rake db:migrate SCOPE=uuids RAILS_ENV=#{ Rails.env }" end namespace :test do desc "Prepares the uuids gem for testing" task :prepare do system "rake db:migrate RAILS_ENV=test" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
uuids-1.2.0 | lib/tasks/uuids_tasks.rake |
uuids-1.1 | lib/tasks/uuids_tasks.rake |
uuids-1.0.2 | lib/tasks/uuids_tasks.rake |
uuids-1.0.1 | lib/tasks/uuids_tasks.rake |