sorbet-rails 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/sorbet-rails/gem_plugins/active_flag_plugin.rb +0 -1
- data/lib/sorbet-rails/gem_plugins/paperclip_plugin.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +9 -2
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +15 -6
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +5 -1
- data/lib/sorbet-rails/model_plugins/base.rb +2 -1
- data/lib/sorbet-rails/model_rbi_formatter.rb +4 -8
- data/lib/sorbet-rails/model_utils.rb +68 -30
- data/lib/sorbet-rails/tasks/rails_rbi.rake +13 -21
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/rails-template.rb +3 -6
- data/spec/generators/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.0/Gemfile.lock +2 -2
- data/spec/support/v5.0/app/models/spell_book.rb +2 -0
- data/spec/support/v5.0/app/models/wizard.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.1/Gemfile.lock +2 -2
- data/spec/support/v5.1/app/models/spell_book.rb +2 -0
- data/spec/support/v5.1/app/models/wizard.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.2/Gemfile.lock +2 -2
- data/spec/support/v5.2/app/models/spell_book.rb +2 -0
- data/spec/support/v5.2/app/models/wizard.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +41 -26
- data/spec/support/v6.0/Gemfile.lock +2 -2
- data/spec/support/v6.0/app/models/spell_book.rb +2 -0
- data/spec/support/v6.0/app/models/wizard.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +41 -26
- data/spec/test_data/v5.0/expected_headmaster.rbi +18 -190
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +18 -188
- data/spec/test_data/v5.0/expected_potion.rbi +18 -188
- data/spec/test_data/v5.0/expected_robe.rbi +18 -190
- data/spec/test_data/v5.0/expected_schema_migration.rbi +18 -188
- data/spec/test_data/v5.0/expected_school.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell_book.rbi +55 -217
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +18 -190
- data/spec/test_data/v5.0/expected_squib.rbi +90 -264
- data/spec/test_data/v5.0/expected_subject.rbi +18 -190
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +18 -190
- data/spec/test_data/v5.0/expected_wand.rbi +53 -227
- data/spec/test_data/v5.0/expected_wizard.rbi +90 -264
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +18 -190
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +90 -264
- data/spec/test_data/v5.1/expected_headmaster.rbi +18 -196
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +18 -194
- data/spec/test_data/v5.1/expected_potion.rbi +18 -194
- data/spec/test_data/v5.1/expected_robe.rbi +18 -196
- data/spec/test_data/v5.1/expected_schema_migration.rbi +18 -194
- data/spec/test_data/v5.1/expected_school.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell_book.rbi +55 -223
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +18 -196
- data/spec/test_data/v5.1/expected_squib.rbi +91 -271
- data/spec/test_data/v5.1/expected_subject.rbi +18 -196
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +18 -196
- data/spec/test_data/v5.1/expected_wand.rbi +53 -233
- data/spec/test_data/v5.1/expected_wizard.rbi +91 -271
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +18 -196
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +91 -271
- data/spec/test_data/v5.2/expected_attachment.rbi +18 -194
- data/spec/test_data/v5.2/expected_blob.rbi +39 -215
- data/spec/test_data/v5.2/expected_headmaster.rbi +18 -196
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +18 -194
- data/spec/test_data/v5.2/expected_potion.rbi +18 -194
- data/spec/test_data/v5.2/expected_robe.rbi +18 -196
- data/spec/test_data/v5.2/expected_schema_migration.rbi +18 -194
- data/spec/test_data/v5.2/expected_school.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell_book.rbi +55 -223
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +18 -196
- data/spec/test_data/v5.2/expected_squib.rbi +95 -275
- data/spec/test_data/v5.2/expected_subject.rbi +18 -196
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +18 -196
- data/spec/test_data/v5.2/expected_wand.rbi +53 -233
- data/spec/test_data/v5.2/expected_wizard.rbi +95 -275
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +18 -196
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +95 -275
- data/spec/test_data/v6.0/expected_attachment.rbi +18 -218
- data/spec/test_data/v6.0/expected_blob.rbi +31 -243
- data/spec/test_data/v6.0/expected_headmaster.rbi +18 -220
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +18 -218
- data/spec/test_data/v6.0/expected_potion.rbi +18 -218
- data/spec/test_data/v6.0/expected_robe.rbi +18 -220
- data/spec/test_data/v6.0/expected_schema_migration.rbi +18 -218
- data/spec/test_data/v6.0/expected_school.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell_book.rbi +24 -258
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +18 -220
- data/spec/test_data/v6.0/expected_squib.rbi +31 -457
- data/spec/test_data/v6.0/expected_subject.rbi +18 -220
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +18 -220
- data/spec/test_data/v6.0/expected_wand.rbi +18 -270
- data/spec/test_data/v6.0/expected_wizard.rbi +31 -457
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +18 -220
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +31 -457
- metadata +1 -1
@@ -8,8 +8,6 @@ module ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ActiveRecord::SchemaMigration::GeneratedAttributeMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(String) }
|
14
12
|
def version; end
|
15
13
|
|
@@ -40,117 +38,11 @@ end
|
|
40
38
|
class ActiveRecord::SchemaMigration < ActiveRecord::Base
|
41
39
|
include ActiveRecord::SchemaMigration::GeneratedAttributeMethods
|
42
40
|
extend ActiveRecord::SchemaMigration::CustomFinderMethods
|
43
|
-
extend
|
44
|
-
extend T::Generic
|
41
|
+
extend ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
45
42
|
RelationType = T.type_alias { T.any(ActiveRecord::SchemaMigration::ActiveRecord_Relation, ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy, ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
46
|
-
|
47
|
-
sig { returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
48
|
-
def self.all; end
|
49
|
-
|
50
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
51
|
-
def self.unscoped(&block); end
|
52
|
-
|
53
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
54
|
-
def self.select(*args); end
|
55
|
-
|
56
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
57
|
-
def self.reselect(*args); end
|
58
|
-
|
59
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
60
|
-
def self.order(*args); end
|
61
|
-
|
62
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
63
|
-
def self.reorder(*args); end
|
64
|
-
|
65
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
66
|
-
def self.group(*args); end
|
67
|
-
|
68
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
69
|
-
def self.limit(*args); end
|
70
|
-
|
71
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
72
|
-
def self.offset(*args); end
|
73
|
-
|
74
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
75
|
-
def self.joins(*args); end
|
76
|
-
|
77
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
78
|
-
def self.left_joins(*args); end
|
79
|
-
|
80
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
81
|
-
def self.left_outer_joins(*args); end
|
82
|
-
|
83
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
84
|
-
def self.where(*args); end
|
85
|
-
|
86
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
87
|
-
def self.rewhere(*args); end
|
88
|
-
|
89
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
90
|
-
def self.preload(*args); end
|
91
|
-
|
92
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
93
|
-
def self.extract_associated(*args); end
|
94
|
-
|
95
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
96
|
-
def self.eager_load(*args); end
|
97
|
-
|
98
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
99
|
-
def self.includes(*args); end
|
100
|
-
|
101
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
102
|
-
def self.from(*args); end
|
103
|
-
|
104
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
105
|
-
def self.lock(*args); end
|
106
|
-
|
107
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
108
|
-
def self.readonly(*args); end
|
109
|
-
|
110
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
111
|
-
def self.or(*args); end
|
112
|
-
|
113
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
114
|
-
def self.having(*args); end
|
115
|
-
|
116
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
117
|
-
def self.create_with(*args); end
|
118
|
-
|
119
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
120
|
-
def self.distinct(*args); end
|
121
|
-
|
122
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
123
|
-
def self.references(*args); end
|
124
|
-
|
125
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
126
|
-
def self.none(*args); end
|
127
|
-
|
128
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
129
|
-
def self.unscope(*args); end
|
130
|
-
|
131
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
132
|
-
def self.optimizer_hints(*args); end
|
133
|
-
|
134
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
135
|
-
def self.merge(*args); end
|
136
|
-
|
137
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
138
|
-
def self.except(*args); end
|
139
|
-
|
140
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
141
|
-
def self.only(*args); end
|
142
|
-
|
143
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
144
|
-
def self.extending(*args, &block); end
|
145
43
|
end
|
146
44
|
|
147
|
-
|
148
|
-
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
149
|
-
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
150
|
-
extend T::Sig
|
151
|
-
extend T::Generic
|
152
|
-
Elem = type_member(fixed: ActiveRecord::SchemaMigration)
|
153
|
-
|
45
|
+
module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
154
46
|
sig { returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
155
47
|
def all; end
|
156
48
|
|
@@ -251,17 +143,11 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
|
|
251
143
|
def extending(*args, &block); end
|
252
144
|
end
|
253
145
|
|
254
|
-
|
255
|
-
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
256
|
-
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
257
|
-
extend T::Sig
|
258
|
-
extend T::Generic
|
259
|
-
Elem = type_member(fixed: ActiveRecord::SchemaMigration)
|
260
|
-
|
146
|
+
module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
261
147
|
sig { returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
262
148
|
def all; end
|
263
149
|
|
264
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::
|
150
|
+
sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
265
151
|
def unscoped(&block); end
|
266
152
|
|
267
153
|
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
@@ -358,110 +244,24 @@ class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRe
|
|
358
244
|
def extending(*args, &block); end
|
359
245
|
end
|
360
246
|
|
361
|
-
class ActiveRecord::SchemaMigration::
|
247
|
+
class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relation
|
248
|
+
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
362
249
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
363
|
-
|
364
|
-
extend T::Generic
|
250
|
+
include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
365
251
|
Elem = type_member(fixed: ActiveRecord::SchemaMigration)
|
252
|
+
end
|
366
253
|
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
374
|
-
def select(*args); end
|
375
|
-
|
376
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
377
|
-
def reselect(*args); end
|
378
|
-
|
379
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
380
|
-
def order(*args); end
|
381
|
-
|
382
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
383
|
-
def reorder(*args); end
|
384
|
-
|
385
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
386
|
-
def group(*args); end
|
387
|
-
|
388
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
389
|
-
def limit(*args); end
|
390
|
-
|
391
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
392
|
-
def offset(*args); end
|
393
|
-
|
394
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
395
|
-
def joins(*args); end
|
396
|
-
|
397
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
398
|
-
def left_joins(*args); end
|
399
|
-
|
400
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
401
|
-
def left_outer_joins(*args); end
|
402
|
-
|
403
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
404
|
-
def where(*args); end
|
405
|
-
|
406
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
407
|
-
def rewhere(*args); end
|
408
|
-
|
409
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
410
|
-
def preload(*args); end
|
411
|
-
|
412
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
413
|
-
def extract_associated(*args); end
|
414
|
-
|
415
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
416
|
-
def eager_load(*args); end
|
417
|
-
|
418
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
419
|
-
def includes(*args); end
|
420
|
-
|
421
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
422
|
-
def from(*args); end
|
423
|
-
|
424
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
425
|
-
def lock(*args); end
|
426
|
-
|
427
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
428
|
-
def readonly(*args); end
|
429
|
-
|
430
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
431
|
-
def or(*args); end
|
432
|
-
|
433
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
434
|
-
def having(*args); end
|
435
|
-
|
436
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
437
|
-
def create_with(*args); end
|
438
|
-
|
439
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
440
|
-
def distinct(*args); end
|
441
|
-
|
442
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
443
|
-
def references(*args); end
|
444
|
-
|
445
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
446
|
-
def none(*args); end
|
447
|
-
|
448
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
449
|
-
def unscope(*args); end
|
450
|
-
|
451
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
452
|
-
def optimizer_hints(*args); end
|
453
|
-
|
454
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
455
|
-
def merge(*args); end
|
456
|
-
|
457
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
458
|
-
def except(*args); end
|
459
|
-
|
460
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
461
|
-
def only(*args); end
|
254
|
+
class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
255
|
+
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
256
|
+
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
257
|
+
include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
258
|
+
Elem = type_member(fixed: ActiveRecord::SchemaMigration)
|
259
|
+
end
|
462
260
|
|
463
|
-
|
464
|
-
|
261
|
+
class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
262
|
+
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
263
|
+
include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
264
|
+
Elem = type_member(fixed: ActiveRecord::SchemaMigration)
|
465
265
|
|
466
266
|
sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
|
467
267
|
def <<(*records); end
|
@@ -8,8 +8,6 @@ module School::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module School::GeneratedAttributeMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(Integer) }
|
14
12
|
def id; end
|
15
13
|
|
@@ -30,8 +28,6 @@ module School::GeneratedAttributeMethods
|
|
30
28
|
end
|
31
29
|
|
32
30
|
module School::GeneratedAssociationMethods
|
33
|
-
extend T::Sig
|
34
|
-
|
35
31
|
sig { returns(::Headmaster) }
|
36
32
|
def headmaster; end
|
37
33
|
|
@@ -60,117 +56,11 @@ class School < ApplicationRecord
|
|
60
56
|
include School::GeneratedAttributeMethods
|
61
57
|
include School::GeneratedAssociationMethods
|
62
58
|
extend School::CustomFinderMethods
|
63
|
-
extend
|
64
|
-
extend T::Generic
|
59
|
+
extend School::QueryMethodsReturningRelation
|
65
60
|
RelationType = T.type_alias { T.any(School::ActiveRecord_Relation, School::ActiveRecord_Associations_CollectionProxy, School::ActiveRecord_AssociationRelation) }
|
66
|
-
|
67
|
-
sig { returns(School::ActiveRecord_Relation) }
|
68
|
-
def self.all; end
|
69
|
-
|
70
|
-
sig { params(block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
|
71
|
-
def self.unscoped(&block); end
|
72
|
-
|
73
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
74
|
-
def self.select(*args); end
|
75
|
-
|
76
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
77
|
-
def self.reselect(*args); end
|
78
|
-
|
79
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
80
|
-
def self.order(*args); end
|
81
|
-
|
82
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
83
|
-
def self.reorder(*args); end
|
84
|
-
|
85
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
86
|
-
def self.group(*args); end
|
87
|
-
|
88
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
89
|
-
def self.limit(*args); end
|
90
|
-
|
91
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
92
|
-
def self.offset(*args); end
|
93
|
-
|
94
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
95
|
-
def self.joins(*args); end
|
96
|
-
|
97
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
98
|
-
def self.left_joins(*args); end
|
99
|
-
|
100
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
101
|
-
def self.left_outer_joins(*args); end
|
102
|
-
|
103
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
104
|
-
def self.where(*args); end
|
105
|
-
|
106
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
107
|
-
def self.rewhere(*args); end
|
108
|
-
|
109
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
110
|
-
def self.preload(*args); end
|
111
|
-
|
112
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
113
|
-
def self.extract_associated(*args); end
|
114
|
-
|
115
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
116
|
-
def self.eager_load(*args); end
|
117
|
-
|
118
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
119
|
-
def self.includes(*args); end
|
120
|
-
|
121
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
122
|
-
def self.from(*args); end
|
123
|
-
|
124
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
125
|
-
def self.lock(*args); end
|
126
|
-
|
127
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
128
|
-
def self.readonly(*args); end
|
129
|
-
|
130
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
131
|
-
def self.or(*args); end
|
132
|
-
|
133
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
134
|
-
def self.having(*args); end
|
135
|
-
|
136
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
137
|
-
def self.create_with(*args); end
|
138
|
-
|
139
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
140
|
-
def self.distinct(*args); end
|
141
|
-
|
142
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
143
|
-
def self.references(*args); end
|
144
|
-
|
145
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
146
|
-
def self.none(*args); end
|
147
|
-
|
148
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
149
|
-
def self.unscope(*args); end
|
150
|
-
|
151
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
152
|
-
def self.optimizer_hints(*args); end
|
153
|
-
|
154
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
155
|
-
def self.merge(*args); end
|
156
|
-
|
157
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
158
|
-
def self.except(*args); end
|
159
|
-
|
160
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
|
161
|
-
def self.only(*args); end
|
162
|
-
|
163
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
|
164
|
-
def self.extending(*args, &block); end
|
165
61
|
end
|
166
62
|
|
167
|
-
|
168
|
-
include School::ActiveRelation_WhereNot
|
169
|
-
include School::CustomFinderMethods
|
170
|
-
extend T::Sig
|
171
|
-
extend T::Generic
|
172
|
-
Elem = type_member(fixed: School)
|
173
|
-
|
63
|
+
module School::QueryMethodsReturningRelation
|
174
64
|
sig { returns(School::ActiveRecord_Relation) }
|
175
65
|
def all; end
|
176
66
|
|
@@ -271,17 +161,11 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation
|
|
271
161
|
def extending(*args, &block); end
|
272
162
|
end
|
273
163
|
|
274
|
-
|
275
|
-
include School::ActiveRelation_WhereNot
|
276
|
-
include School::CustomFinderMethods
|
277
|
-
extend T::Sig
|
278
|
-
extend T::Generic
|
279
|
-
Elem = type_member(fixed: School)
|
280
|
-
|
164
|
+
module School::QueryMethodsReturningAssociationRelation
|
281
165
|
sig { returns(School::ActiveRecord_AssociationRelation) }
|
282
166
|
def all; end
|
283
167
|
|
284
|
-
sig { params(block: T.nilable(T.proc.void)).returns(School::
|
168
|
+
sig { params(block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
|
285
169
|
def unscoped(&block); end
|
286
170
|
|
287
171
|
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
@@ -378,110 +262,24 @@ class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
378
262
|
def extending(*args, &block); end
|
379
263
|
end
|
380
264
|
|
381
|
-
class School::
|
265
|
+
class School::ActiveRecord_Relation < ActiveRecord::Relation
|
266
|
+
include School::ActiveRelation_WhereNot
|
382
267
|
include School::CustomFinderMethods
|
383
|
-
|
384
|
-
extend T::Generic
|
268
|
+
include School::QueryMethodsReturningRelation
|
385
269
|
Elem = type_member(fixed: School)
|
270
|
+
end
|
386
271
|
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
394
|
-
def select(*args); end
|
395
|
-
|
396
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
397
|
-
def reselect(*args); end
|
398
|
-
|
399
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
400
|
-
def order(*args); end
|
401
|
-
|
402
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
403
|
-
def reorder(*args); end
|
404
|
-
|
405
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
406
|
-
def group(*args); end
|
407
|
-
|
408
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
409
|
-
def limit(*args); end
|
410
|
-
|
411
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
412
|
-
def offset(*args); end
|
413
|
-
|
414
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
415
|
-
def joins(*args); end
|
416
|
-
|
417
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
418
|
-
def left_joins(*args); end
|
419
|
-
|
420
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
421
|
-
def left_outer_joins(*args); end
|
422
|
-
|
423
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
424
|
-
def where(*args); end
|
425
|
-
|
426
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
427
|
-
def rewhere(*args); end
|
428
|
-
|
429
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
430
|
-
def preload(*args); end
|
431
|
-
|
432
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
433
|
-
def extract_associated(*args); end
|
434
|
-
|
435
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
436
|
-
def eager_load(*args); end
|
437
|
-
|
438
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
439
|
-
def includes(*args); end
|
440
|
-
|
441
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
442
|
-
def from(*args); end
|
443
|
-
|
444
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
445
|
-
def lock(*args); end
|
446
|
-
|
447
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
448
|
-
def readonly(*args); end
|
449
|
-
|
450
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
451
|
-
def or(*args); end
|
452
|
-
|
453
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
454
|
-
def having(*args); end
|
455
|
-
|
456
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
457
|
-
def create_with(*args); end
|
458
|
-
|
459
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
460
|
-
def distinct(*args); end
|
461
|
-
|
462
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
463
|
-
def references(*args); end
|
464
|
-
|
465
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
466
|
-
def none(*args); end
|
467
|
-
|
468
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
469
|
-
def unscope(*args); end
|
470
|
-
|
471
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
472
|
-
def optimizer_hints(*args); end
|
473
|
-
|
474
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
475
|
-
def merge(*args); end
|
476
|
-
|
477
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
478
|
-
def except(*args); end
|
479
|
-
|
480
|
-
sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
|
481
|
-
def only(*args); end
|
272
|
+
class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
273
|
+
include School::ActiveRelation_WhereNot
|
274
|
+
include School::CustomFinderMethods
|
275
|
+
include School::QueryMethodsReturningAssociationRelation
|
276
|
+
Elem = type_member(fixed: School)
|
277
|
+
end
|
482
278
|
|
483
|
-
|
484
|
-
|
279
|
+
class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
280
|
+
include School::CustomFinderMethods
|
281
|
+
include School::QueryMethodsReturningAssociationRelation
|
282
|
+
Elem = type_member(fixed: School)
|
485
283
|
|
486
284
|
sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) }
|
487
285
|
def <<(*records); end
|