Module: ActiveRecord::ConnectionAdapters::SQLite3::ColumnMethods
- Included in:
- Table, TableDefinition
- Defined in:
- activerecord/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
Instance Method Summary collapse
Instance Method Details
#primary_key(name, type = :primary_key, **options) ⇒ Object
7 8 9 10 11 12 13 |
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb', line 7 def primary_key(name, type = :primary_key, **) if %i(integer bigint).include?(type) && (.delete(:auto_increment) == true || !.key?(:default)) type = :primary_key end super end |