Sha256: cec3ed337c5b3e8a241f6443956eeaa0177dd7b0d8211d843b37cab20d28d25b
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
module ActiveRecord::Import::SQLite3Adapter include ActiveRecord::Import::ImportSupport # Override our conformance to ActiveRecord::Import::ImportSupport interface # to ensure that we only support import in supported version of SQLite. # Which INSERT statements with multiple value sets was introduced in 3.2.11. def supports_import?(current_version=self.sqlite_version) minimum_supported_version = "3.2.11" if current_version >= minimum_supported_version true else false end end def next_value_for_sequence(sequence_name) %{nextval('#{sequence_name}')} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-import-0.3.1 | lib/activerecord-import/adapters/sqlite3_adapter.rb |