mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Robot improvements
This commit is contained in:
parent
fcc5ae1f23
commit
add35a9fee
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Build and run for automatic tests
|
# Build and run for automatic tests
|
||||||
#
|
#
|
||||||
|
|
||||||
# fail later
|
# fail later
|
||||||
|
@ -23,6 +23,7 @@ bundle install
|
||||||
RAILS_ENV=test bundle exec rake db:drop
|
RAILS_ENV=test bundle exec rake db:drop
|
||||||
RAILS_ENV=test bundle exec rake db:create
|
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 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 db:seed
|
||||||
RAILS_ENV=test bundle exec rake assets:precompile
|
RAILS_ENV=test bundle exec rake assets:precompile
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace :api_log do
|
||||||
task :dump => [:environment] do
|
task :dump => [:environment] do
|
||||||
filename = "#{Rails.root}/db/api_log_schema.rb"
|
filename = "#{Rails.root}/db/api_log_schema.rb"
|
||||||
File.open(filename, 'w:utf-8') do |file|
|
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)
|
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue