Method: Migratrix::Extractions::Extraction#obtain_source

Defined in:
lib/migratrix/extractions/extraction.rb

#obtain_source(source, options = {}) ⇒ Object

First step in extraction is to take the given source and turn it into something that the filter chain can used. The ActiveRecord extraction uses a legacy model class as its source so it can simply return its source. A CSV or Yaml extraction here might need to read the entire file contents and returns the full, unfiltered data source.

Raises:

  • (NotImplementedError)


63
64
65
# File 'lib/migratrix/extractions/extraction.rb', line 63

def obtain_source(source, options={})
  raise NotImplementedError
end