blob: d0b38dff4cd767b4512c8e34c544d861354f361c (
plain) (
tree)
|
|
module ActiveRecord
module ConnectionAdapters
module SQLite3
module ColumnMethods
def primary_key(name, type = :primary_key, **options)
if options.delete(:auto_increment) == true && %i(integer bigint).include?(type)
type = :primary_key
end
super
end
end
class TableDefinition < ActiveRecord::ConnectionAdapters::TableDefinition
include ColumnMethods
end
class Table < ActiveRecord::ConnectionAdapters::Table
include ColumnMethods
end
end
end
end
|