sorbet-rails 0.7.33 → 0.7.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci-master.yml +1 -1
- data/.github/workflows/ci.yml +1 -1
- data/CONTRIBUTING.md +1 -0
- data/Gemfile +4 -0
- data/README.md +1 -1
- data/Rakefile +27 -1
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +14 -0
- data/lib/sorbet-rails/rails_mixins/active_record_overrides.rb +1 -1
- data/lib/sorbet-rails/tasks/rails_rbi.rake +15 -0
- data/sorbet-rails.gemspec +1 -1
- data/spec/bin/run_all_specs.sh +1 -0
- data/spec/generators/rails-template.rb +2 -7
- data/spec/rails_helper.rb +2 -0
- data/spec/rake_rails_rbi_models_spec.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +8 -0
- data/spec/support/v6.0/sorbet_test_cases.rb +8 -0
- data/spec/support/v6.1/sorbet_test_cases.rb +8 -0
- data/spec/support/v7.0/.gitattributes +7 -0
- data/spec/support/v7.0/.gitignore +35 -0
- data/spec/support/v7.0/Gemfile +48 -0
- data/spec/support/v7.0/Gemfile.lock +218 -0
- data/spec/support/v7.0/README.md +24 -0
- data/spec/support/v7.0/Rakefile +6 -0
- data/spec/support/v7.0/app/assets/images/.keep +0 -0
- data/spec/support/v7.0/app/assets/stylesheets/application.css +1 -0
- data/spec/support/v7.0/app/controllers/application_controller.rb +3 -0
- data/spec/support/v7.0/app/controllers/concerns/.keep +0 -0
- data/spec/support/v7.0/app/helpers/application_helper.rb +3 -0
- data/spec/support/v7.0/app/helpers/bar_helper.rb +3 -0
- data/spec/support/v7.0/app/helpers/baz_helper.rb +3 -0
- data/spec/support/v7.0/app/helpers/foo_helper.rb +3 -0
- data/spec/support/v7.0/app/jobs/application_job.rb +8 -0
- data/spec/support/v7.0/app/jobs/award_house_point_hourglasses.rb +12 -0
- data/spec/support/v7.0/app/mailers/application_mailer.rb +5 -0
- data/spec/support/v7.0/app/mailers/daily_prophet_mailer.rb +9 -0
- data/spec/support/v7.0/app/mailers/hogwarts_acceptance_mailer.rb +29 -0
- data/spec/support/v7.0/app/models/application_record.rb +4 -0
- data/spec/support/v7.0/app/models/concerns/.keep +0 -0
- data/spec/support/v7.0/app/models/concerns/mythical.rb +11 -0
- data/spec/support/v7.0/app/models/headmaster.rb +8 -0
- data/spec/support/v7.0/app/models/potion.rb +6 -0
- data/spec/support/v7.0/app/models/robe.rb +4 -0
- data/spec/support/v7.0/app/models/school.rb +5 -0
- data/spec/support/v7.0/app/models/spell.rb +5 -0
- data/spec/support/v7.0/app/models/spell_book.rb +18 -0
- data/spec/support/v7.0/app/models/squib.rb +6 -0
- data/spec/support/v7.0/app/models/subject.rb +5 -0
- data/spec/support/v7.0/app/models/wand.rb +19 -0
- data/spec/support/v7.0/app/models/wizard.rb +65 -0
- data/spec/support/v7.0/app/views/layouts/application.html.erb +15 -0
- data/spec/support/v7.0/app/views/layouts/mailer.html.erb +13 -0
- data/spec/support/v7.0/app/views/layouts/mailer.text.erb +1 -0
- data/spec/support/v7.0/bin/bundle +114 -0
- data/spec/support/v7.0/bin/rails +4 -0
- data/spec/support/v7.0/bin/rake +4 -0
- data/spec/support/v7.0/bin/setup +33 -0
- data/spec/support/v7.0/config/application.rb +38 -0
- data/spec/support/v7.0/config/boot.rb +4 -0
- data/spec/support/v7.0/config/database.yml +25 -0
- data/spec/support/v7.0/config/environment.rb +6 -0
- data/spec/support/v7.0/config/environments/development.rb +69 -0
- data/spec/support/v7.0/config/environments/production.rb +83 -0
- data/spec/support/v7.0/config/environments/test.rb +61 -0
- data/spec/support/v7.0/config/initializers/content_security_policy.rb +26 -0
- data/spec/support/v7.0/config/initializers/filter_parameter_logging.rb +9 -0
- data/spec/support/v7.0/config/initializers/inflections.rb +17 -0
- data/spec/support/v7.0/config/initializers/permissions_policy.rb +12 -0
- data/spec/support/v7.0/config/initializers/sorbet_rails.rb +3 -0
- data/spec/support/v7.0/config/locales/en.yml +33 -0
- data/spec/support/v7.0/config/puma.rb +44 -0
- data/spec/support/v7.0/config/routes.rb +8 -0
- data/spec/support/v7.0/config/storage.yml +34 -0
- data/spec/support/v7.0/config.ru +6 -0
- data/spec/support/v7.0/db/migrate/20190620000001_create_wizards.rb +14 -0
- data/spec/support/v7.0/db/migrate/20190620000002_create_wands.rb +12 -0
- data/spec/support/v7.0/db/migrate/20190620000003_create_spell_books.rb +10 -0
- data/spec/support/v7.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +14 -0
- data/spec/support/v7.0/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
- data/spec/support/v7.0/db/migrate/20190620000006_add_more_enums_to_wizard.rb +9 -0
- data/spec/support/v7.0/db/migrate/20190620000007_add_type_to_wizard.rb +6 -0
- data/spec/support/v7.0/db/migrate/20190620000008_add_robe_to_wizard.rb +8 -0
- data/spec/support/v7.0/db/migrate/20190620000009_add_school.rb +10 -0
- data/spec/support/v7.0/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v7.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v7.0/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v7.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v7.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v7.0/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v7.0/db/schema.rb +98 -0
- data/spec/support/v7.0/db/seeds.rb +8 -0
- data/spec/support/v7.0/lib/assets/.keep +0 -0
- data/spec/support/v7.0/lib/mythical_rbi_plugin.rb +16 -0
- data/spec/support/v7.0/lib/tasks/.keep +0 -0
- data/spec/support/v7.0/log/.keep +0 -0
- data/spec/support/v7.0/sorbet_test_cases.rb +439 -0
- data/spec/support/v7.0/storage/.keep +0 -0
- data/spec/support/v7.0/tmp/.keep +0 -0
- data/spec/support/v7.0/tmp/pids/.keep +0 -0
- data/spec/support/v7.0/tmp/storage/.keep +0 -0
- data/spec/support/v7.0/vendor/.keep +0 -0
- data/spec/test_data/v5.2/expected_active_record_base.rbi +6 -0
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +6 -0
- data/spec/test_data/v6.0/expected_active_record_base.rbi +6 -0
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +6 -0
- data/spec/test_data/v6.1/expected_active_record_base.rbi +6 -0
- data/spec/test_data/v6.1/expected_active_record_relation.rbi +6 -0
- data/spec/test_data/v7.0/expected_active_record_base.rbi +119 -0
- data/spec/test_data/v7.0/expected_active_record_relation.rbi +180 -0
- data/spec/test_data/v7.0/expected_application_job.rbi +20 -0
- data/spec/test_data/v7.0/expected_application_mailer.rbi +5 -0
- data/spec/test_data/v7.0/expected_attachment.rbi +358 -0
- data/spec/test_data/v7.0/expected_award_house_point_hourglasses.rbi +20 -0
- data/spec/test_data/v7.0/expected_blob.rbi +394 -0
- data/spec/test_data/v7.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v7.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v7.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v7.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v7.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v7.0/expected_daily_prophet_mailer.rbi +7 -0
- data/spec/test_data/v7.0/expected_headmaster.rbi +376 -0
- data/spec/test_data/v7.0/expected_helpers.rbi +27 -0
- data/spec/test_data/v7.0/expected_helpers_with_application_and_devise_helpers.rbi +34 -0
- data/spec/test_data/v7.0/expected_hogwarts_acceptance_mailer.rbi +20 -0
- data/spec/test_data/v7.0/expected_internal_metadata.rbi +346 -0
- data/spec/test_data/v7.0/expected_no_routes.rbi +4 -0
- data/spec/test_data/v7.0/expected_potion.rbi +328 -0
- data/spec/test_data/v7.0/expected_record.rbi +307 -0
- data/spec/test_data/v7.0/expected_robe.rbi +349 -0
- data/spec/test_data/v7.0/expected_routes.rbi +182 -0
- data/spec/test_data/v7.0/expected_schema_migration.rbi +319 -0
- data/spec/test_data/v7.0/expected_school.rbi +349 -0
- data/spec/test_data/v7.0/expected_spell/habtm_spell_books.rbi +367 -0
- data/spec/test_data/v7.0/expected_spell.rbi +340 -0
- data/spec/test_data/v7.0/expected_spell_book/habtm_spells.rbi +367 -0
- data/spec/test_data/v7.0/expected_spell_book.rbi +499 -0
- data/spec/test_data/v7.0/expected_squib.rbi +1204 -0
- data/spec/test_data/v7.0/expected_srb_tc_output.txt +1 -0
- data/spec/test_data/v7.0/expected_subject/habtm_wizards.rbi +367 -0
- data/spec/test_data/v7.0/expected_subject.rbi +340 -0
- data/spec/test_data/v7.0/expected_variant_record.rbi +382 -0
- data/spec/test_data/v7.0/expected_wand.rbi +611 -0
- data/spec/test_data/v7.0/expected_wizard/habtm_subjects.rbi +367 -0
- data/spec/test_data/v7.0/expected_wizard.rbi +1280 -0
- data/spec/test_data/v7.0/expected_wizard_wo_spellbook.rbi +1274 -0
- metadata +243 -1
@@ -0,0 +1,182 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# This is an autogenerated file for Rails routes.
|
3
|
+
# Please run bundle exec rake rails_rbi:routes to regenerate.
|
4
|
+
class ActionController::Base
|
5
|
+
include GeneratedUrlHelpers
|
6
|
+
end
|
7
|
+
|
8
|
+
class ActionController::API
|
9
|
+
include GeneratedUrlHelpers
|
10
|
+
end
|
11
|
+
|
12
|
+
module ActionView::Helpers
|
13
|
+
include GeneratedUrlHelpers
|
14
|
+
end
|
15
|
+
|
16
|
+
class ActionMailer::Base
|
17
|
+
include GeneratedUrlHelpers
|
18
|
+
end
|
19
|
+
|
20
|
+
class ActionDispatch::IntegrationTest
|
21
|
+
include GeneratedUrlHelpers
|
22
|
+
end
|
23
|
+
|
24
|
+
class ActionDispatch::SystemTestCase
|
25
|
+
include GeneratedUrlHelpers
|
26
|
+
end
|
27
|
+
|
28
|
+
module GeneratedUrlHelpers
|
29
|
+
# Sigs for route /test/index(.:format)
|
30
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
31
|
+
def test_index_path(*args, **kwargs); end
|
32
|
+
|
33
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
34
|
+
def test_index_url(*args, **kwargs); end
|
35
|
+
|
36
|
+
# Sigs for route /rails/action_mailbox/postmark/inbound_emails(.:format)
|
37
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
38
|
+
def rails_postmark_inbound_emails_path(*args, **kwargs); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
41
|
+
def rails_postmark_inbound_emails_url(*args, **kwargs); end
|
42
|
+
|
43
|
+
# Sigs for route /rails/action_mailbox/relay/inbound_emails(.:format)
|
44
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
45
|
+
def rails_relay_inbound_emails_path(*args, **kwargs); end
|
46
|
+
|
47
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
48
|
+
def rails_relay_inbound_emails_url(*args, **kwargs); end
|
49
|
+
|
50
|
+
# Sigs for route /rails/action_mailbox/sendgrid/inbound_emails(.:format)
|
51
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
52
|
+
def rails_sendgrid_inbound_emails_path(*args, **kwargs); end
|
53
|
+
|
54
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
55
|
+
def rails_sendgrid_inbound_emails_url(*args, **kwargs); end
|
56
|
+
|
57
|
+
# Sigs for route /rails/action_mailbox/mandrill/inbound_emails(.:format)
|
58
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
59
|
+
def rails_mandrill_inbound_health_check_path(*args, **kwargs); end
|
60
|
+
|
61
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
62
|
+
def rails_mandrill_inbound_health_check_url(*args, **kwargs); end
|
63
|
+
|
64
|
+
# Sigs for route /rails/action_mailbox/mandrill/inbound_emails(.:format)
|
65
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
66
|
+
def rails_mandrill_inbound_emails_path(*args, **kwargs); end
|
67
|
+
|
68
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
69
|
+
def rails_mandrill_inbound_emails_url(*args, **kwargs); end
|
70
|
+
|
71
|
+
# Sigs for route /rails/action_mailbox/mailgun/inbound_emails/mime(.:format)
|
72
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
73
|
+
def rails_mailgun_inbound_emails_path(*args, **kwargs); end
|
74
|
+
|
75
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
76
|
+
def rails_mailgun_inbound_emails_url(*args, **kwargs); end
|
77
|
+
|
78
|
+
# Sigs for route /rails/conductor/action_mailbox/inbound_emails(.:format)
|
79
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
80
|
+
def rails_conductor_inbound_emails_path(*args, **kwargs); end
|
81
|
+
|
82
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
83
|
+
def rails_conductor_inbound_emails_url(*args, **kwargs); end
|
84
|
+
|
85
|
+
# Sigs for route /rails/conductor/action_mailbox/inbound_emails/new(.:format)
|
86
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
87
|
+
def new_rails_conductor_inbound_email_path(*args, **kwargs); end
|
88
|
+
|
89
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
90
|
+
def new_rails_conductor_inbound_email_url(*args, **kwargs); end
|
91
|
+
|
92
|
+
# Sigs for route /rails/conductor/action_mailbox/inbound_emails/:id/edit(.:format)
|
93
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
94
|
+
def edit_rails_conductor_inbound_email_path(*args, **kwargs); end
|
95
|
+
|
96
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
97
|
+
def edit_rails_conductor_inbound_email_url(*args, **kwargs); end
|
98
|
+
|
99
|
+
# Sigs for route /rails/conductor/action_mailbox/inbound_emails/:id(.:format)
|
100
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
101
|
+
def rails_conductor_inbound_email_path(*args, **kwargs); end
|
102
|
+
|
103
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
104
|
+
def rails_conductor_inbound_email_url(*args, **kwargs); end
|
105
|
+
|
106
|
+
# Sigs for route /rails/conductor/action_mailbox/inbound_emails/sources/new(.:format)
|
107
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
108
|
+
def new_rails_conductor_inbound_email_source_path(*args, **kwargs); end
|
109
|
+
|
110
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
111
|
+
def new_rails_conductor_inbound_email_source_url(*args, **kwargs); end
|
112
|
+
|
113
|
+
# Sigs for route /rails/conductor/action_mailbox/inbound_emails/sources(.:format)
|
114
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
115
|
+
def rails_conductor_inbound_email_sources_path(*args, **kwargs); end
|
116
|
+
|
117
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
118
|
+
def rails_conductor_inbound_email_sources_url(*args, **kwargs); end
|
119
|
+
|
120
|
+
# Sigs for route /rails/conductor/action_mailbox/:inbound_email_id/reroute(.:format)
|
121
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
122
|
+
def rails_conductor_inbound_email_reroute_path(*args, **kwargs); end
|
123
|
+
|
124
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
125
|
+
def rails_conductor_inbound_email_reroute_url(*args, **kwargs); end
|
126
|
+
|
127
|
+
# Sigs for route /rails/conductor/action_mailbox/:inbound_email_id/incinerate(.:format)
|
128
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
129
|
+
def rails_conductor_inbound_email_incinerate_path(*args, **kwargs); end
|
130
|
+
|
131
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
132
|
+
def rails_conductor_inbound_email_incinerate_url(*args, **kwargs); end
|
133
|
+
|
134
|
+
# Sigs for route /rails/active_storage/blobs/redirect/:signed_id/*filename(.:format)
|
135
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
136
|
+
def rails_service_blob_path(*args, **kwargs); end
|
137
|
+
|
138
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
139
|
+
def rails_service_blob_url(*args, **kwargs); end
|
140
|
+
|
141
|
+
# Sigs for route /rails/active_storage/blobs/proxy/:signed_id/*filename(.:format)
|
142
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
143
|
+
def rails_service_blob_proxy_path(*args, **kwargs); end
|
144
|
+
|
145
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
146
|
+
def rails_service_blob_proxy_url(*args, **kwargs); end
|
147
|
+
|
148
|
+
# Sigs for route /rails/active_storage/representations/redirect/:signed_blob_id/:variation_key/*filename(.:format)
|
149
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
150
|
+
def rails_blob_representation_path(*args, **kwargs); end
|
151
|
+
|
152
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
153
|
+
def rails_blob_representation_url(*args, **kwargs); end
|
154
|
+
|
155
|
+
# Sigs for route /rails/active_storage/representations/proxy/:signed_blob_id/:variation_key/*filename(.:format)
|
156
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
157
|
+
def rails_blob_representation_proxy_path(*args, **kwargs); end
|
158
|
+
|
159
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
160
|
+
def rails_blob_representation_proxy_url(*args, **kwargs); end
|
161
|
+
|
162
|
+
# Sigs for route /rails/active_storage/disk/:encoded_key/*filename(.:format)
|
163
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
164
|
+
def rails_disk_service_path(*args, **kwargs); end
|
165
|
+
|
166
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
167
|
+
def rails_disk_service_url(*args, **kwargs); end
|
168
|
+
|
169
|
+
# Sigs for route /rails/active_storage/disk/:encoded_token(.:format)
|
170
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
171
|
+
def update_rails_disk_service_path(*args, **kwargs); end
|
172
|
+
|
173
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
174
|
+
def update_rails_disk_service_url(*args, **kwargs); end
|
175
|
+
|
176
|
+
# Sigs for route /rails/active_storage/direct_uploads(.:format)
|
177
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
178
|
+
def rails_direct_uploads_path(*args, **kwargs); end
|
179
|
+
|
180
|
+
sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
|
181
|
+
def rails_direct_uploads_url(*args, **kwargs); end
|
182
|
+
end
|
@@ -0,0 +1,319 @@
|
|
1
|
+
# This is an autogenerated file for dynamic methods in ActiveRecord::SchemaMigration
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[ActiveRecord::SchemaMigration] to regenerate.
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
module ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
6
|
+
sig { params(opts: T.untyped, rest: T.untyped).returns(T.self_type) }
|
7
|
+
def not(opts, *rest); end
|
8
|
+
end
|
9
|
+
|
10
|
+
module ActiveRecord::SchemaMigration::GeneratedAttributeMethods
|
11
|
+
sig { returns(String) }
|
12
|
+
def version; end
|
13
|
+
|
14
|
+
sig { params(value: T.any(String, Symbol)).void }
|
15
|
+
def version=(value); end
|
16
|
+
|
17
|
+
sig { returns(T::Boolean) }
|
18
|
+
def version?; end
|
19
|
+
end
|
20
|
+
|
21
|
+
module ActiveRecord::SchemaMigration::CustomFinderMethods
|
22
|
+
sig { params(limit: Integer).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
23
|
+
def first_n(limit); end
|
24
|
+
|
25
|
+
sig { params(limit: Integer).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
26
|
+
def last_n(limit); end
|
27
|
+
|
28
|
+
sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
29
|
+
def find_n(*args); end
|
30
|
+
|
31
|
+
sig { params(id: T.nilable(Integer)).returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
32
|
+
def find_by_id(id); end
|
33
|
+
|
34
|
+
sig { params(id: Integer).returns(ActiveRecord::SchemaMigration) }
|
35
|
+
def find_by_id!(id); end
|
36
|
+
end
|
37
|
+
|
38
|
+
class ActiveRecord::SchemaMigration < ActiveRecord::Base
|
39
|
+
include ActiveRecord::SchemaMigration::GeneratedAttributeMethods
|
40
|
+
extend ActiveRecord::SchemaMigration::CustomFinderMethods
|
41
|
+
extend ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
42
|
+
RelationType = T.type_alias { T.any(ActiveRecord::SchemaMigration::ActiveRecord_Relation, ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy, ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
43
|
+
end
|
44
|
+
|
45
|
+
module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
46
|
+
sig { returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
47
|
+
def all; end
|
48
|
+
|
49
|
+
sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
50
|
+
def unscoped(&block); end
|
51
|
+
|
52
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
53
|
+
def reselect(*args); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
56
|
+
def order(*args); end
|
57
|
+
|
58
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
59
|
+
def reorder(*args); end
|
60
|
+
|
61
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
62
|
+
def group(*args); end
|
63
|
+
|
64
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
65
|
+
def limit(*args); end
|
66
|
+
|
67
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
68
|
+
def offset(*args); end
|
69
|
+
|
70
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
71
|
+
def joins(*args); end
|
72
|
+
|
73
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
74
|
+
def left_joins(*args); end
|
75
|
+
|
76
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
77
|
+
def left_outer_joins(*args); end
|
78
|
+
|
79
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
80
|
+
def where(*args); end
|
81
|
+
|
82
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
83
|
+
def rewhere(*args); end
|
84
|
+
|
85
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
86
|
+
def preload(*args); end
|
87
|
+
|
88
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
89
|
+
def extract_associated(*args); end
|
90
|
+
|
91
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
92
|
+
def eager_load(*args); end
|
93
|
+
|
94
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
95
|
+
def includes(*args); end
|
96
|
+
|
97
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
98
|
+
def from(*args); end
|
99
|
+
|
100
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
101
|
+
def lock(*args); end
|
102
|
+
|
103
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
104
|
+
def readonly(*args); end
|
105
|
+
|
106
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
107
|
+
def or(*args); end
|
108
|
+
|
109
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
110
|
+
def having(*args); end
|
111
|
+
|
112
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
113
|
+
def create_with(*args); end
|
114
|
+
|
115
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
116
|
+
def distinct(*args); end
|
117
|
+
|
118
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
119
|
+
def references(*args); end
|
120
|
+
|
121
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
122
|
+
def none(*args); end
|
123
|
+
|
124
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
125
|
+
def unscope(*args); end
|
126
|
+
|
127
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
128
|
+
def optimizer_hints(*args); end
|
129
|
+
|
130
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
131
|
+
def merge(*args); end
|
132
|
+
|
133
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
134
|
+
def except(*args); end
|
135
|
+
|
136
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
137
|
+
def only(*args); end
|
138
|
+
|
139
|
+
sig { params(block: T.proc.params(e: ActiveRecord::SchemaMigration).returns(T::Boolean)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
140
|
+
def select(&block); end
|
141
|
+
|
142
|
+
sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
143
|
+
def select_columns(*args); end
|
144
|
+
|
145
|
+
sig { params(args: Symbol).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
146
|
+
def where_missing(*args); end
|
147
|
+
|
148
|
+
sig { params(column: Symbol, values: T::Array[T.untyped]).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
149
|
+
def in_order_of(column, values); end
|
150
|
+
|
151
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
152
|
+
def extending(*args, &block); end
|
153
|
+
|
154
|
+
sig do
|
155
|
+
params(
|
156
|
+
of: T.nilable(Integer),
|
157
|
+
start: T.nilable(Integer),
|
158
|
+
finish: T.nilable(Integer),
|
159
|
+
load: T.nilable(T::Boolean),
|
160
|
+
error_on_ignore: T.nilable(T::Boolean),
|
161
|
+
block: T.nilable(T.proc.params(e: ActiveRecord::SchemaMigration::ActiveRecord_Relation).void)
|
162
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
163
|
+
end
|
164
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
165
|
+
end
|
166
|
+
|
167
|
+
module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
168
|
+
sig { returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
169
|
+
def all; end
|
170
|
+
|
171
|
+
sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
172
|
+
def unscoped(&block); end
|
173
|
+
|
174
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
175
|
+
def reselect(*args); end
|
176
|
+
|
177
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
178
|
+
def order(*args); end
|
179
|
+
|
180
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
181
|
+
def reorder(*args); end
|
182
|
+
|
183
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
184
|
+
def group(*args); end
|
185
|
+
|
186
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
187
|
+
def limit(*args); end
|
188
|
+
|
189
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
190
|
+
def offset(*args); end
|
191
|
+
|
192
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
193
|
+
def joins(*args); end
|
194
|
+
|
195
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
196
|
+
def left_joins(*args); end
|
197
|
+
|
198
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
199
|
+
def left_outer_joins(*args); end
|
200
|
+
|
201
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
202
|
+
def where(*args); end
|
203
|
+
|
204
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
205
|
+
def rewhere(*args); end
|
206
|
+
|
207
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
208
|
+
def preload(*args); end
|
209
|
+
|
210
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
211
|
+
def extract_associated(*args); end
|
212
|
+
|
213
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
214
|
+
def eager_load(*args); end
|
215
|
+
|
216
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
217
|
+
def includes(*args); end
|
218
|
+
|
219
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
220
|
+
def from(*args); end
|
221
|
+
|
222
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
223
|
+
def lock(*args); end
|
224
|
+
|
225
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
226
|
+
def readonly(*args); end
|
227
|
+
|
228
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
229
|
+
def or(*args); end
|
230
|
+
|
231
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
232
|
+
def having(*args); end
|
233
|
+
|
234
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
235
|
+
def create_with(*args); end
|
236
|
+
|
237
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
238
|
+
def distinct(*args); end
|
239
|
+
|
240
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
241
|
+
def references(*args); end
|
242
|
+
|
243
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
244
|
+
def none(*args); end
|
245
|
+
|
246
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
247
|
+
def unscope(*args); end
|
248
|
+
|
249
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
250
|
+
def optimizer_hints(*args); end
|
251
|
+
|
252
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
253
|
+
def merge(*args); end
|
254
|
+
|
255
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
256
|
+
def except(*args); end
|
257
|
+
|
258
|
+
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
259
|
+
def only(*args); end
|
260
|
+
|
261
|
+
sig { params(block: T.proc.params(e: ActiveRecord::SchemaMigration).returns(T::Boolean)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
262
|
+
def select(&block); end
|
263
|
+
|
264
|
+
sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
265
|
+
def select_columns(*args); end
|
266
|
+
|
267
|
+
sig { params(args: Symbol).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
268
|
+
def where_missing(*args); end
|
269
|
+
|
270
|
+
sig { params(column: Symbol, values: T::Array[T.untyped]).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
271
|
+
def in_order_of(column, values); end
|
272
|
+
|
273
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
274
|
+
def extending(*args, &block); end
|
275
|
+
|
276
|
+
sig do
|
277
|
+
params(
|
278
|
+
of: T.nilable(Integer),
|
279
|
+
start: T.nilable(Integer),
|
280
|
+
finish: T.nilable(Integer),
|
281
|
+
load: T.nilable(T::Boolean),
|
282
|
+
error_on_ignore: T.nilable(T::Boolean),
|
283
|
+
block: T.nilable(T.proc.params(e: ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation).void)
|
284
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
285
|
+
end
|
286
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
287
|
+
end
|
288
|
+
|
289
|
+
class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relation
|
290
|
+
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
291
|
+
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
292
|
+
include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
293
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
294
|
+
end
|
295
|
+
|
296
|
+
class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
297
|
+
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
298
|
+
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
299
|
+
include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
300
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
301
|
+
end
|
302
|
+
|
303
|
+
class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
304
|
+
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
305
|
+
include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
306
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
307
|
+
|
308
|
+
sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
|
309
|
+
def <<(*records); end
|
310
|
+
|
311
|
+
sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
|
312
|
+
def append(*records); end
|
313
|
+
|
314
|
+
sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
|
315
|
+
def push(*records); end
|
316
|
+
|
317
|
+
sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
|
318
|
+
def concat(*records); end
|
319
|
+
end
|