# File activerecord/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb, line 7 def primary_key(name, type = :primary_key, **options) if %i(integer bigint).include?(type) && (options.delete(:auto_increment) == true || !options.key?(:default)) type = :primary_key end super end
module ActiveRecord::ConnectionAdapters::SQLite3::ColumnMethods
Public Instance Methods
primary_key(name, type = :primary_key, **options)
click to toggle source
Calls superclass method