Sha256: 3105850e958db77d3b4778038df9644843d3704ad732211ae4bac679767a0069

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 KB

Contents

# This file is autogenerated. Do not edit it by hand. Regenerate it with:
#   srb rbi sorbet-typed
#
# If you would like to make changes to this file, great! Please upstream any changes you make here:
#
#   https://github.com/sorbet/sorbet-typed/edit/master/lib/activerecord/all/activerecord.rbi
#
# typed: strong

class ActiveRecord::Base
  sig do
    params(
      model: Symbol,
      autosave: T.nilable(T::Boolean),
      class_name: T.nilable(String),
      counter_cache: T.nilable(T.any(T::Boolean, Symbol)),
      dependent: T.nilable(Symbol),
      foreign_key: T.nilable(Symbol),
      primary_key: T.nilable(Symbol),
      inverse_of: T.nilable(Symbol),
      polymorphic: T.nilable(T::Boolean),
      touch: T.nilable(T.any(T::Boolean, Symbol)),
      validate: T.nilable(T::Boolean),
      optional: T.nilable(T::Boolean)
    ).void
  end
  def self.belongs_to(
    model,
    autosave: nil,
    class_name: nil,
    counter_cache: nil,
    dependent: nil,
    foreign_key: nil,
    primary_key: nil,
    inverse_of: nil,
    polymorphic: nil,
    touch: nil,
    validate: nil,
    optional: nil
  ); end
end

class ActiveRecord::Schema
  sig {params(info: Hash, blk: T.proc.bind(ActiveRecord::Schema).void).void}
  def self.define(info = nil, &blk); end
end

class ActiveRecord::Migration::Current < ActiveRecord::Migration
  def change_column(table_name, column_name, type, options = nil); end
  def create_table(table_name, options = nil); end
end

Version data entries

6 entries across 2 versions & 1 rubygems

Version Path
sorbet-rails-0.4.0 spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi
sorbet-rails-0.4.0 spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi
sorbet-rails-0.4.0 spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi
sorbet-rails-0.4.0 spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi
sorbet-rails-0.4.0 spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi
sorbet-rails-0.3.0 spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi