mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
parent
27ee3b2be8
commit
3954a7c074
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ namespace :db do
|
|||
puts "\n---------------------------- #{name} ----------------------------------------\n"
|
||||
filename = "#{Rails.root}/db/#{schema_file(name)}"
|
||||
File.open(filename, 'w:utf-8') do |file|
|
||||
ActiveRecord::Base.establish_connection(name)
|
||||
ActiveRecord::Base.establish_connection(name.to_sym)
|
||||
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
|
||||
end
|
||||
rescue => e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue