Sha256: 26e6da4295ac5fd5c49212715b8a525751523749cd658abea658533c1900aa41
Contents?: true
Size: 947 Bytes
Versions: 7
Compression:
Stored size: 947 Bytes
Contents
namespace :test_track do desc 'Run outstanding TestTrack migrations' task migrate: :environment do cli = TesttrackCli.instance if cli.project_initialized? result = cli.call('migrate') exit(result.exitstatus) unless result.success? end end namespace :schema do desc 'Load schema.yml state into TestTrack server' task load: :environment do cli = TesttrackCli.instance if cli.project_initialized? result = cli.call('schema', 'load') exit(result.exitstatus) unless result.success? else TestTrack.update_config do |c| c.load_schema # Load legacy schema end end end end end if !Rails.env.test? && !(Rails.env.development? && File.exist?(File.join('testtrack', 'schema.yml'))) task 'db:schema:load' => ['test_track:schema:load'] task 'db:structure:load' => ['test_track:schema:load'] task 'db:migrate' => ['test_track:migrate'] end
Version data entries
7 entries across 7 versions & 1 rubygems