Sha256: 54b29c22af7e66a4933c0ed7cbf513d819dea9186f386fedd3c8d39495b86fd6

Contents?: true

Size: 462 Bytes

Versions: 144

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module SQLite3
      class TableDefinition < ActiveRecord::ConnectionAdapters::TableDefinition
        def references(*args, **options)
          super(*args, type: :integer, **options)
        end
        alias :belongs_to :references

        private
          def integer_like_primary_key_type(type, options)
            :primary_key
          end
      end
    end
  end
end

Version data entries

144 entries across 140 versions & 11 rubygems

Version Path
activerecord-6.1.7.10 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-6.1.7.9 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-6.1.7.8 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-6.1.7.7 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-7.0.7.2 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-6.1.7.6 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-7.0.7.1 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-6.1.7.5 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-7.0.7 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-7.0.6 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-7.0.5.1 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
activerecord-6.1.7.4 lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb