customink / secondbase

Seamless second database integration for Rails.
MIT License
220 stars 30 forks source link

Structure Dump & Load #8

Closed metaskills closed 8 years ago

metaskills commented 8 years ago

When the ActiveRecord::Base.schema_format is set to :sql, a structure dump is used. Modern Rails also has a structure load. Some nuances of the implementation support DB_STRUCTURE environment variable with a fallback to structure.sql. I even noticed how this task even asks the DatabaseTask module for the #db_dir too. Interesting.