Method: ActiveRecord::Tasks::DatabaseTasks#check_schema_file
- Defined in:
- activerecord/lib/active_record/tasks/database_tasks.rb
#check_schema_file(filename) ⇒ Object
490 491 492 493 494 495 496 |
# File 'activerecord/lib/active_record/tasks/database_tasks.rb', line 490 def check_schema_file(filename) unless File.exist?(filename) = +%{#{filename} doesn't exist yet. Run `bin/rails db:migrate` to create it, then try again.} << %{ If you do not intend to use a database, you should instead alter #{Rails.root}/config/application.rb to limit the frameworks that will be loaded.} if defined?(::Rails.root) Kernel.abort end end |