mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Robot improvements
This commit is contained in:
parent
fcc5ae1f23
commit
add35a9fee
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue