APIdock / Ruby on Rails
/
Browse About
method

db_dir

v5.1.7 - Show latest stable - Class: ActiveRecord::Tasks::DatabaseTasks
db_dir()
public

No documentation available.

# File activerecord/lib/active_record/tasks/database_tasks.rb, line 78
      def db_dir
        @db_dir ||= Rails.application.config.paths["db"].first
      end

Related methods

  • Instance methods
  • charset
  • charset_current
  • check_protected_environments!
  • check_schema_file
  • collation
  • collation_current
  • create
  • create_all
  • create_current
  • current_config
  • db_dir
  • drop
  • drop_all
  • drop_current
  • dump_schema_cache
  • env
  • fixtures_path
  • load_schema
  • load_schema_current
  • load_seed
  • migrate
  • migrations_paths
  • purge
  • purge_all
  • purge_current
  • register_task
  • root
  • schema_file
  • seed_loader
  • structure_dump
  • structure_load
  • Class methods
  • structure_dump_flags
  • structure_load_flags
  • Private methods
  • privateclass_for_adapter
  • privateeach_current_configuration
  • privateeach_local_configuration
  • privatelocal_database?
APIdock API Documentation Browser

© 2026 APIdock