Robot improvements

This commit is contained in:
Martin Lensment 2015-01-13 16:43:52 +02:00
parent fcc5ae1f23
commit add35a9fee
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
#
# Build and run for automatic tests
# Build and run for automatic tests
#
# fail later
@ -23,6 +23,7 @@ bundle install
RAILS_ENV=test bundle exec rake db:drop
RAILS_ENV=test bundle exec rake db:create
RAILS_ENV=test bundle exec rake db:schema:load &> /dev/null
RAILS_ENV=test bundle exec rake api_log:test:schema:reload &> /dev/null
RAILS_ENV=test bundle exec rake db:seed
RAILS_ENV=test bundle exec rake assets:precompile

View file

@ -5,7 +5,7 @@ namespace :api_log do
task :dump => [:environment] do
filename = "#{Rails.root}/db/api_log_schema.rb"
File.open(filename, 'w:utf-8') do |file|
ActiveRecord::Base.establish_connection(:api_log_development)
ActiveRecord::Base.establish_connection("api_log_#{Rails.env}".to_sym)
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
end
end