Module: ActiveRecord::ConnectionAdapters::SQLite3::ColumnMethods
- Included in:
- Table, TableDefinition
- Defined in:
- lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
Instance Method Summary collapse
Instance Method Details
#primary_key(name, type = :primary_key, **options) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/active_record/connection_adapters/sqlite3/schema_definitions.rb', line 5 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 |