Flowdock
method

drop

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: SQLiteDatabaseTasks
drop() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/tasks/sqlite_database_tasks.rb, line 19
      def drop
        require "pathname"
        path = Pathname.new configuration["database"]
        file = path.absolute? ? path.to_s : File.join(root, path)

        FileUtils.rm(file)
      rescue Errno::ENOENT => error
        raise NoDatabaseError.new(error.message)
      end
Register or log in to add new notes.