method
schema_file
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::Tasks::DatabaseTasks
schema_file(format = ActiveRecord::Base.schema_format)public
No documentation available.
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 203
def schema_file(format = ActiveRecord::Base.schema_format)
case format
when :ruby
File.join(db_dir, "schema.rb")
when :sql
File.join(db_dir, "structure.sql")
end
end