method
drop
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::Tasks::SQLiteDatabaseTasks
drop()public
No documentation available.
# File activerecord/lib/active_record/tasks/sqlite_database_tasks.rb, line 24
def drop
require "pathname"
path = Pathname.new(db_config.database)
file = path.absolute? ? path.to_s : File.join(root, path)
FileUtils.rm(file)
rescue Errno::ENOENT => error
raise NoDatabaseError.new(error.message)
end