Sha256: 5b063a0e7b1cc4a95e2bd0014437e21dc630cc579d5349fd3ecfb189b035f6b4
Contents?: true
Size: 586 Bytes
Versions: 10
Compression:
Stored size: 586 Bytes
Contents
# desc "Explaining what the task does" # task :mno_enterprise do # # Task goes here # end # /*\ WARNING /*\ # Make sure you never screw with that tasks. Ever. # Otherwise, deletion of all database data may occur. # # This task is used by the Ansible automation scripts # to automatically setup/seed the database or migrate it # namespace :db do desc 'Migrate the database or set it up' task :migrate_or_setup => :environment do if ActiveRecord::Migrator.current_version > 0 Rake::Task['db:migrate'].invoke else Rake::Task['db:setup'].invoke end end end
Version data entries
10 entries across 10 versions & 1 rubygems