Sha256: 870ee20ec20012aea20929b54eeac918583d739c8d9c61524083fd0374c2d894
Contents?: true
Size: 610 Bytes
Versions: 20
Compression:
Stored size: 610 Bytes
Contents
#============================================= # Rails task extension #============================================= # /*\ 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
20 entries across 20 versions & 1 rubygems