-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.annotate_solargraph_schema
2065 lines (2006 loc) · 74.5 KB
/
.annotate_solargraph_schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This is a dummy file generated by `rails-annotate-solargraph`
# to extend solargraph's understanding of your Rails app.
# You should probably add it to `.gitignore`
# Some static comments to fill a few gaps
# in Rails comprehension.
class ActionController::Base
include ActionController::MimeResponds
include ActionController::Redirecting
include ActionController::Cookies
include AbstractController::Rendering
extend ActiveSupport::Callbacks::ClassMethods
extend ActiveSupport::Rescuable::ClassMethods
extend AbstractController::Callbacks::ClassMethods
extend ActionController::RequestForgeryProtection::ClassMethods
end
class ActiveRecord::Base
extend ActiveRecord::Reflection::ClassMethods
extend ActiveModel::SecurePassword::ClassMethods
extend ActiveModel::Attributes::ClassMethods
include ActiveModel::Attributes
include ActiveModel::Dirty
extend ActiveRecord::Validations::ClassMethods
include ActiveRecord::Validations
extend ActiveModel::Validations::ClassMethods
include ActiveModel::Validations
extend ActiveRecord::Calculations
extend ActiveRecord::Batches
extend ActiveRecord::QueryMethods
extend ActiveRecord::FinderMethods
extend ActiveRecord::Associations::ClassMethods
extend ActiveRecord::Inheritance::ClassMethods
extend ActiveRecord::ModelSchema::ClassMethods
extend ActiveRecord::Transactions::ClassMethods
extend ActiveRecord::Scoping::Named::ClassMethods
include ActiveRecord::Persistence
# Registers a callback to be called after initialize.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_initialize(*args, &block); end
# Registers a callback to be called after find.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_find(*args, &block); end
# Registers a callback to be called after touch.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_touch(*args, &block); end
# Registers a callback to be called before validation.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.before_validation(*args, &block); end
# Registers a callback to be called after validation.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_validation(*args, &block); end
# Registers a callback to be called before save.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.before_save(*args, &block); end
# Registers a callback to be called around save.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.around_save(*args, &block); end
# Registers a callback to be called after save.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_save(*args, &block); end
# Registers a callback to be called before create.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.before_create(*args, &block); end
# Registers a callback to be called around create.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.around_create(*args, &block); end
# Registers a callback to be called after create.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_create(*args, &block); end
# Registers a callback to be called before update.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.before_update(*args, &block); end
# Registers a callback to be called around update.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.around_update(*args, &block); end
# Registers a callback to be called after update.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_update(*args, &block); end
# Registers a callback to be called before destroy.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.before_destroy(*args, &block); end
# Registers a callback to be called around destroy.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.around_destroy(*args, &block); end
# Registers a callback to be called after destroy.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_destroy(*args, &block); end
# Registers a callback to be called after commit.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_commit(*args, &block); end
# Registers a callback to be called after rollback.
# See `ActiveRecord::Callbacks` for more information.
# @return [void]
def self.after_rollback(*args, &block); end
end
class Rails
# @return [Rails::Application]
def self.application; end
end
class Rails::Application
# @return [ActionDispatch::Routing::RouteSet]
def routes; end
end
class ActionDispatch::Routing::Mapper
include ActionDispatch::Routing::Mapper::Base
include ActionDispatch::Routing::Mapper::HttpHelpers
include ActionDispatch::Routing::Mapper::Redirection
include ActionDispatch::Routing::Mapper::Scoping
include ActionDispatch::Routing::Mapper::Concerns
include ActionDispatch::Routing::Mapper::Resources
include ActionDispatch::Routing::Mapper::CustomUrls
end
class ActionDispatch::Routing::RouteSet
# @yieldself [ActionDispatch::Routing::Mapper]
def draw; end
end
# Dynamically generated documentation
# %%<RailsAnnotateSolargraph:Start:boards>%%
class DB::Board < ApplicationRecord
# Scope `:deleted_after_time`.
#
# scope :deleted_after_time, lambda { |time|
# only_deleted
# .where("#{table_name}.#{paranoid_column} > ?", time)
# }
#
# @return [Array<DB::Board>, nil]
def self.deleted_after_time(time); end
# Scope `:deleted_before_time`.
#
# scope :deleted_before_time, lambda { |time|
# only_deleted
# .where("#{table_name}.#{paranoid_column} < ?", time)
# }
#
# @return [Array<DB::Board>, nil]
def self.deleted_before_time(time); end
# Scope `:deleted_inside_time_window`.
#
# scope :deleted_inside_time_window, lambda { |time, window|
# deleted_after_time((time - window)).deleted_before_time((time + window))
# }
#
# @return [Array<DB::Board>, nil]
def self.deleted_inside_time_window(time, window); end
# `has_one` relation with `DB::Sprint`. Database column `sprints.board_id`.
# @param val [DB::Sprint, nil]
def active_sprint=(val); end
# `has_one` relation with `DB::Sprint`. Database column `sprints.board_id`.
# @return [DB::Sprint, nil]
def active_sprint; end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @param val [Array<DB::List>, nil]
def deleted_lists=(val); end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @return [Array<DB::List>, nil]
def deleted_lists; end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @param val [Array<DB::List>, nil]
def invisible_lists=(val); end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @return [Array<DB::List>, nil]
def invisible_lists; end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @param val [Array<DB::List>, nil]
def lists=(val); end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @return [Array<DB::List>, nil]
def lists; end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @param val [Array<DB::List>, nil]
def lists_including_deleted=(val); end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @return [Array<DB::List>, nil]
def lists_including_deleted; end
# `has_many` relation with `DB::Sprint`. Database column `sprints.board_id`.
# @param val [Array<DB::Sprint>, nil]
def sprints=(val); end
# `has_many` relation with `DB::Sprint`. Database column `sprints.board_id`.
# @return [Array<DB::Sprint>, nil]
def sprints; end
# `has_many` relation with `DB::Tag`. Database column `tags.board_id`.
# @param val [Array<DB::Tag>, nil]
def tags=(val); end
# `has_many` relation with `DB::Tag`. Database column `tags.board_id`.
# @return [Array<DB::Tag>, nil]
def tags; end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @param val [Array<DB::List>, nil]
def visible_lists=(val); end
# `has_many` relation with `DB::List`. Database column `lists.board_id`.
# @return [Array<DB::List>, nil]
def visible_lists; end
# `belongs_to` relation with `DB::Workspace`. Database column `boards.workspace_id`.
# @param val [DB::Workspace, nil]
def workspace=(val); end
# `belongs_to` relation with `DB::Workspace`. Database column `boards.workspace_id`.
# @return [DB::Workspace, nil]
def workspace; end
# Database column `boards.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `boards.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `boards.name`, type: `string`.
# @param val [String, nil]
def name=(val); end
# Database column `boards.name`, type: `string`.
# @return [String, nil]
def name; end
# Database column `boards.created_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def created_at=(val); end
# Database column `boards.created_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def created_at; end
# Database column `boards.updated_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def updated_at=(val); end
# Database column `boards.updated_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def updated_at; end
# Database column `boards.workspace_id`, type: `integer`.
# @param val [Integer, nil]
def workspace_id=(val); end
# Database column `boards.workspace_id`, type: `integer`.
# @return [Integer, nil]
def workspace_id; end
# Database column `boards.colour`, type: `string`.
# @param val [String, nil]
def colour=(val); end
# Database column `boards.colour`, type: `string`.
# @return [String, nil]
def colour; end
# Database column `boards.deleted_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def deleted_at=(val); end
# Database column `boards.deleted_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def deleted_at; end
# Database column `boards.custom_data`, type: `jsonb`.
# @param val [Hash, nil]
def custom_data=(val); end
# Database column `boards.custom_data`, type: `jsonb`.
# @return [Hash, nil]
def custom_data; end
end
# %%<RailsAnnotateSolargraph:End:boards>%%
# %%<RailsAnnotateSolargraph:Start:comments>%%
class DB::Comment < ApplicationRecord
# Scope `:deleted_after_time`.
#
# scope :deleted_after_time, lambda { |time|
# only_deleted
# .where("#{table_name}.#{paranoid_column} > ?", time)
# }
#
# @return [Array<DB::Comment>, nil]
def self.deleted_after_time(time); end
# Scope `:deleted_before_time`.
#
# scope :deleted_before_time, lambda { |time|
# only_deleted
# .where("#{table_name}.#{paranoid_column} < ?", time)
# }
#
# @return [Array<DB::Comment>, nil]
def self.deleted_before_time(time); end
# Scope `:deleted_inside_time_window`.
#
# scope :deleted_inside_time_window, lambda { |time, window|
# deleted_after_time((time - window)).deleted_before_time((time + window))
# }
#
# @return [Array<DB::Comment>, nil]
def self.deleted_inside_time_window(time, window); end
# Scope `:find_for_task`.
#
# scope :find_for_task, ->(id) { where(task_id: id) }
#
# @return [Array<DB::Comment>, nil]
def self.find_for_task(id); end
# Scope `:find_with_author_for_task`.
#
# scope :find_with_author_for_task, ->(id) { includes(:author).where(task_id: id) }
#
# @return [Array<DB::Comment>, nil]
def self.find_with_author_for_task(id); end
# `belongs_to` relation with `DB::User`. Database column `comments.author_id`.
# @param val [DB::User, nil]
def author=(val); end
# `belongs_to` relation with `DB::User`. Database column `comments.author_id`.
# @return [DB::User, nil]
def author; end
# `belongs_to` relation with `DB::Task`. Database column `comments.task_id`.
# @param val [DB::Task, nil]
def task=(val); end
# `belongs_to` relation with `DB::Task`. Database column `comments.task_id`.
# @return [DB::Task, nil]
def task; end
# Database column `comments.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `comments.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `comments.body`, type: `text`.
# @param val [String, nil]
def body=(val); end
# Database column `comments.body`, type: `text`.
# @return [String, nil]
def body; end
# Database column `comments.author_id`, type: `integer`.
# @param val [Integer, nil]
def author_id=(val); end
# Database column `comments.author_id`, type: `integer`.
# @return [Integer, nil]
def author_id; end
# Database column `comments.task_id`, type: `integer`.
# @param val [Integer, nil]
def task_id=(val); end
# Database column `comments.task_id`, type: `integer`.
# @return [Integer, nil]
def task_id; end
# Database column `comments.created_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def created_at=(val); end
# Database column `comments.created_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def created_at; end
# Database column `comments.updated_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def updated_at=(val); end
# Database column `comments.updated_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def updated_at; end
# Database column `comments.deleted_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def deleted_at=(val); end
# Database column `comments.deleted_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def deleted_at; end
# Database column `comments.custom_data`, type: `jsonb`.
# @param val [Hash, nil]
def custom_data=(val); end
# Database column `comments.custom_data`, type: `jsonb`.
# @return [Hash, nil]
def custom_data; end
end
# %%<RailsAnnotateSolargraph:End:comments>%%
# %%<RailsAnnotateSolargraph:Start:jwt_denylist>%%
class DB::JwtDenylist < ApplicationRecord
# Database column `jwt_denylist.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `jwt_denylist.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `jwt_denylist.jti`, type: `string`.
# @param val [String, nil]
def jti=(val); end
# Database column `jwt_denylist.jti`, type: `string`.
# @return [String, nil]
def jti; end
# Database column `jwt_denylist.exp`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def exp=(val); end
# Database column `jwt_denylist.exp`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def exp; end
end
# %%<RailsAnnotateSolargraph:End:jwt_denylist>%%
# %%<RailsAnnotateSolargraph:Start:lists>%%
class DB::List < ApplicationRecord
# Scope `:deleted_after_time`.
#
# scope :deleted_after_time, lambda { |time|
# only_deleted
# .where("#{table_name}.#{paranoid_column} > ?", time)
# }
#
# @return [Array<DB::List>, nil]
def self.deleted_after_time(time); end
# Scope `:deleted_before_time`.
#
# scope :deleted_before_time, lambda { |time|
# only_deleted
# .where("#{table_name}.#{paranoid_column} < ?", time)
# }
#
# @return [Array<DB::List>, nil]
def self.deleted_before_time(time); end
# Scope `:deleted_inside_time_window`.
#
# scope :deleted_inside_time_window, lambda { |time, window|
# deleted_after_time((time - window)).deleted_before_time((time + window))
# }
#
# @return [Array<DB::List>, nil]
def self.deleted_inside_time_window(time, window); end
# Scope `:find_with_deleted_tasks`.
#
# scope :find_with_deleted_tasks, ->(id) { include_deleted_tasks.find(id) }
#
# @return [Array<DB::List>, nil]
def self.find_with_deleted_tasks(id); end
# Scope `:find_with_tasks`.
#
# scope :find_with_tasks, ->(id) { include_tasks.find(id) }
#
# @return [Array<DB::List>, nil]
def self.find_with_tasks(id); end
# Scope `:find_with_tasks_including_deleted`.
#
# scope :find_with_tasks_including_deleted, ->(id) { include_tasks_containing_deleted.find(id) }
#
# @return [Array<DB::List>, nil]
def self.find_with_tasks_including_deleted(id); end
# Scope `:include_deleted_tasks`.
#
# scope :include_deleted_tasks, -> { includes(deleted_tasks: %i[tags users]) }
#
# @return [Array<DB::List>, nil]
def self.include_deleted_tasks(); end
# Scope `:include_tasks`.
#
# scope :include_tasks, -> { includes(tasks: %i[tags users author]) }
#
# @return [Array<DB::List>, nil]
def self.include_tasks(); end
# Scope `:include_tasks_containing_deleted`.
#
# scope :include_tasks_containing_deleted, -> { includes(tasks_including_deleted: %i[tags users]) }
#
# @return [Array<DB::List>, nil]
def self.include_tasks_containing_deleted(); end
# Scope `:include_user_tasks`.
#
# scope(:include_user_tasks, lambda do |user|
# return self unless user
#
# include_tasks.where(users: { id: user.id })
# end)
#
# @return [Array<DB::List>, nil]
def self.include_user_tasks(user); end
# Scope `:pos_order`.
#
# scope :pos_order, -> { reorder(pos: :asc) }
#
# @return [Array<DB::List>, nil]
def self.pos_order(); end
# Scope `:visible`.
#
# scope :visible, ->(visible) { where(visible:) }
#
# @return [Array<DB::List>, nil]
def self.visible(visible); end
# `belongs_to` relation with `DB::Board`. Database column `lists.board_id`.
# @param val [DB::Board, nil]
def board=(val); end
# `belongs_to` relation with `DB::Board`. Database column `lists.board_id`.
# @return [DB::Board, nil]
def board; end
# `has_many` relation with `DB::Task`. Database column `tasks.list_id`.
# @param val [Array<DB::Task>, nil]
def deleted_tasks=(val); end
# `has_many` relation with `DB::Task`. Database column `tasks.list_id`.
# @return [Array<DB::Task>, nil]
def deleted_tasks; end
# `has_many` relation with `DB::Task`. Database column `tasks.list_id`.
# @param val [Array<DB::Task>, nil]
def tasks=(val); end
# `has_many` relation with `DB::Task`. Database column `tasks.list_id`.
# @return [Array<DB::Task>, nil]
def tasks; end
# `has_many` relation with `DB::Task`. Database column `tasks.list_id`.
# @param val [Array<DB::Task>, nil]
def tasks_including_deleted=(val); end
# `has_many` relation with `DB::Task`. Database column `tasks.list_id`.
# @return [Array<DB::Task>, nil]
def tasks_including_deleted; end
# Database column `lists.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `lists.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `lists.name`, type: `string`.
# @param val [String, nil]
def name=(val); end
# Database column `lists.name`, type: `string`.
# @return [String, nil]
def name; end
# Database column `lists.pos`, type: `float`.
# @param val [BigDecimal, nil]
def pos=(val); end
# Database column `lists.pos`, type: `float`.
# @return [BigDecimal, nil]
def pos; end
# Database column `lists.board_id`, type: `integer`.
# @param val [Integer, nil]
def board_id=(val); end
# Database column `lists.board_id`, type: `integer`.
# @return [Integer, nil]
def board_id; end
# Database column `lists.created_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def created_at=(val); end
# Database column `lists.created_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def created_at; end
# Database column `lists.updated_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def updated_at=(val); end
# Database column `lists.updated_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def updated_at; end
# Database column `lists.deleted_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def deleted_at=(val); end
# Database column `lists.deleted_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def deleted_at; end
# Database column `lists.visible`, type: `boolean`.
# @param val [Boolean, nil]
def visible=(val); end
# Database column `lists.visible`, type: `boolean`.
# @return [Boolean, nil]
def visible; end
# Database column `lists.custom_data`, type: `jsonb`.
# @param val [Hash, nil]
def custom_data=(val); end
# Database column `lists.custom_data`, type: `jsonb`.
# @return [Hash, nil]
def custom_data; end
end
# %%<RailsAnnotateSolargraph:End:lists>%%
# %%<RailsAnnotateSolargraph:Start:scripts>%%
class DB::Script < ApplicationRecord
# `belongs_to` relation with `DB::User`. Database column `scripts.author_id`.
# @param val [DB::User, nil]
def author=(val); end
# `belongs_to` relation with `DB::User`. Database column `scripts.author_id`.
# @return [DB::User, nil]
def author; end
# `has_many` relation with `DB::ScriptRun`. Database column `script_runs.script_id`.
# @param val [Array<DB::ScriptRun>, nil]
def script_runs=(val); end
# `has_many` relation with `DB::ScriptRun`. Database column `script_runs.script_id`.
# @return [Array<DB::ScriptRun>, nil]
def script_runs; end
# `has_many` relation with `DB::ScriptTrigger`. Database column `script_triggers.script_id`.
# @param val [Array<DB::ScriptTrigger>, nil]
def script_triggers=(val); end
# `has_many` relation with `DB::ScriptTrigger`. Database column `script_triggers.script_id`.
# @return [Array<DB::ScriptTrigger>, nil]
def script_triggers; end
# `has_many` relation with `DB::UiScriptTrigger`. Database column `ui_script_triggers.script_id`.
# @param val [Array<DB::UiScriptTrigger>, nil]
def ui_script_triggers=(val); end
# `has_many` relation with `DB::UiScriptTrigger`. Database column `ui_script_triggers.script_id`.
# @return [Array<DB::UiScriptTrigger>, nil]
def ui_script_triggers; end
# Database column `scripts.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `scripts.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `scripts.content`, type: `text`.
# @param val [String, nil]
def content=(val); end
# Database column `scripts.content`, type: `text`.
# @return [String, nil]
def content; end
# Database column `scripts.name`, type: `string`.
# @param val [String, nil]
def name=(val); end
# Database column `scripts.name`, type: `string`.
# @return [String, nil]
def name; end
# Database column `scripts.description`, type: `text`.
# @param val [String, nil]
def description=(val); end
# Database column `scripts.description`, type: `text`.
# @return [String, nil]
def description; end
# Database column `scripts.author_id`, type: `integer`.
# @param val [Integer, nil]
def author_id=(val); end
# Database column `scripts.author_id`, type: `integer`.
# @return [Integer, nil]
def author_id; end
end
# %%<RailsAnnotateSolargraph:End:scripts>%%
# %%<RailsAnnotateSolargraph:Start:script_runs>%%
class DB::ScriptRun < ApplicationRecord
# Scope `:connection_failed`.
#
# klass.scope value_method_name, -> { where(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.connection_failed(); end
# Scope `:executed`.
#
# klass.scope value_method_name, -> { where(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.executed(); end
# Scope `:failed`.
#
# klass.scope value_method_name, -> { where(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.failed(); end
# Scope `:not_connection_failed`.
#
# klass.scope "not_#{value_method_name}", -> { where.not(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.not_connection_failed(); end
# Scope `:not_executed`.
#
# klass.scope "not_#{value_method_name}", -> { where.not(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.not_executed(); end
# Scope `:not_failed`.
#
# klass.scope "not_#{value_method_name}", -> { where.not(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.not_failed(); end
# Scope `:not_running`.
#
# klass.scope "not_#{value_method_name}", -> { where.not(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.not_running(); end
# Scope `:not_timed_out`.
#
# klass.scope "not_#{value_method_name}", -> { where.not(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.not_timed_out(); end
# Scope `:not_waiting`.
#
# klass.scope "not_#{value_method_name}", -> { where.not(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.not_waiting(); end
# Scope `:running`.
#
# klass.scope value_method_name, -> { where(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.running(); end
# Scope `:timed_out`.
#
# klass.scope value_method_name, -> { where(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.timed_out(); end
# Scope `:waiting`.
#
# klass.scope value_method_name, -> { where(name => value) }
#
# @return [Array<DB::ScriptRun>, nil]
def self.waiting(); end
# `belongs_to` relation with `DB::User`. Database column `script_runs.initiator_id`.
# @param val [DB::User, nil]
def initiator=(val); end
# `belongs_to` relation with `DB::User`. Database column `script_runs.initiator_id`.
# @return [DB::User, nil]
def initiator; end
# `belongs_to` relation with `DB::Script`. Database column `script_runs.script_id`.
# @param val [DB::Script, nil]
def script=(val); end
# `belongs_to` relation with `DB::Script`. Database column `script_runs.script_id`.
# @return [DB::Script, nil]
def script; end
# Database column `script_runs.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `script_runs.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `script_runs.script_id`, type: `integer`.
# @param val [Integer, nil]
def script_id=(val); end
# Database column `script_runs.script_id`, type: `integer`.
# @return [Integer, nil]
def script_id; end
# Database column `script_runs.output`, type: `text`.
# @param val [String, nil]
def output=(val); end
# Database column `script_runs.output`, type: `text`.
# @return [String, nil]
def output; end
# Database column `script_runs.initiator_id`, type: `integer`.
# @param val [Integer, nil]
def initiator_id=(val); end
# Database column `script_runs.initiator_id`, type: `integer`.
# @return [Integer, nil]
def initiator_id; end
# Database column `script_runs.input`, type: `text`.
# @param val [String, nil]
def input=(val); end
# Database column `script_runs.input`, type: `text`.
# @return [String, nil]
def input; end
# Database column `script_runs.state`, type: `integer`.
# @param val [Integer, nil]
def state=(val); end
# Database column `script_runs.state`, type: `integer`.
# @return [Integer, nil]
def state; end
# Database column `script_runs.delay`, type: `integer`.
# @param val [Integer, nil]
def delay=(val); end
# Database column `script_runs.delay`, type: `integer`.
# @return [Integer, nil]
def delay; end
# Database column `script_runs.triggered_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def triggered_at=(val); end
# Database column `script_runs.triggered_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def triggered_at; end
# Database column `script_runs.executed_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def executed_at=(val); end
# Database column `script_runs.executed_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def executed_at; end
end
# %%<RailsAnnotateSolargraph:End:script_runs>%%
# %%<RailsAnnotateSolargraph:Start:script_triggers>%%
class DB::ScriptTrigger < ApplicationRecord
# Scope `:for_model`.
#
# scope :for_model, ->(model) { where(subject_type: model.to_s).where(subject: nil) }
#
# @return [Array<DB::ScriptTrigger>, nil]
def self.for_model(model); end
# Scope `:for_record`.
#
# scope :for_record, ->(record) { where(subject: record) }
#
# @return [Array<DB::ScriptTrigger>, nil]
def self.for_record(record); end
# Scope `:global`.
#
# scope :global, -> { where(subject_type: nil) }
#
# @return [Array<DB::ScriptTrigger>, nil]
def self.global(); end
# Scope `:regarding_record`.
#
# scope :regarding_record, (lambda do |record|
# global.or(for_model(record.class)).or(for_record(record))
# end)
#
# @return [Array<DB::ScriptTrigger>, nil]
def self.regarding_record(record); end
# Scope `:with_action`.
#
# scope :with_action, ->(action) { where(action: action) }
#
# @return [Array<DB::ScriptTrigger>, nil]
def self.with_action(action); end
# Polymorphic relation. Database columns `script_triggers.scope_id` and `script_triggers.scope_type`.
# @param val [Object, nil]
def scope=(val); end
# Polymorphic relation. Database columns `script_triggers.scope_id` and `script_triggers.scope_type`.
# @return [Object, nil]
def scope; end
# `belongs_to` relation with `DB::Script`. Database column `script_triggers.script_id`.
# @param val [DB::Script, nil]
def script=(val); end
# `belongs_to` relation with `DB::Script`. Database column `script_triggers.script_id`.
# @return [DB::Script, nil]
def script; end
# Polymorphic relation. Database columns `script_triggers.subject_id` and `script_triggers.subject_type`.
# @param val [Object, nil]
def subject=(val); end
# Polymorphic relation. Database columns `script_triggers.subject_id` and `script_triggers.subject_type`.
# @return [Object, nil]
def subject; end
# Database column `script_triggers.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `script_triggers.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `script_triggers.script_id`, type: `integer`.
# @param val [Integer, nil]
def script_id=(val); end
# Database column `script_triggers.script_id`, type: `integer`.
# @return [Integer, nil]
def script_id; end
# Database column `script_triggers.subject_type`, type: `string`.
# @param val [String, nil]
def subject_type=(val); end
# Database column `script_triggers.subject_type`, type: `string`.
# @return [String, nil]
def subject_type; end
# Database column `script_triggers.subject_id`, type: `integer`.
# @param val [Integer, nil]
def subject_id=(val); end
# Database column `script_triggers.subject_id`, type: `integer`.
# @return [Integer, nil]
def subject_id; end
# Database column `script_triggers.action`, type: `string`.
# @param val [String, nil]
def action=(val); end
# Database column `script_triggers.action`, type: `string`.
# @return [String, nil]
def action; end
# Database column `script_triggers.delay`, type: `integer`.
# @param val [Integer, nil]
def delay=(val); end
# Database column `script_triggers.delay`, type: `integer`.
# @return [Integer, nil]
def delay; end
# Database column `script_triggers.scope_type`, type: `string`.
# @param val [String, nil]
def scope_type=(val); end
# Database column `script_triggers.scope_type`, type: `string`.
# @return [String, nil]
def scope_type; end
# Database column `script_triggers.scope_id`, type: `integer`.
# @param val [Integer, nil]
def scope_id=(val); end
# Database column `script_triggers.scope_id`, type: `integer`.
# @return [Integer, nil]
def scope_id; end
# Database column `script_triggers.author_id`, type: `integer`.
# @param val [Integer, nil]
def author_id=(val); end
# Database column `script_triggers.author_id`, type: `integer`.
# @return [Integer, nil]
def author_id; end
# Database column `script_triggers.private`, type: `boolean`.
# @param val [Boolean, nil]
def private=(val); end
# Database column `script_triggers.private`, type: `boolean`.
# @return [Boolean, nil]
def private; end
end
# %%<RailsAnnotateSolargraph:End:script_triggers>%%
# %%<RailsAnnotateSolargraph:Start:script_variables>%%
class DB::ScriptVariable < ApplicationRecord
# Scope `:global`.
#
# scope :global, -> { where(owner_type: nil) }
#
# @return [Array<DB::ScriptVariable>, nil]
def self.global(); end
# Polymorphic relation. Database columns `script_variables.owner_id` and `script_variables.owner_type`.
# @param val [Object, nil]
def owner=(val); end
# Polymorphic relation. Database columns `script_variables.owner_id` and `script_variables.owner_type`.
# @return [Object, nil]
def owner; end
# Database column `script_variables.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `script_variables.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `script_variables.owner_type`, type: `string`.
# @param val [String, nil]
def owner_type=(val); end
# Database column `script_variables.owner_type`, type: `string`.
# @return [String, nil]
def owner_type; end
# Database column `script_variables.owner_id`, type: `integer`.
# @param val [Integer, nil]
def owner_id=(val); end
# Database column `script_variables.owner_id`, type: `integer`.
# @return [Integer, nil]
def owner_id; end
# Database column `script_variables.name`, type: `string`.
# @param val [String, nil]
def name=(val); end
# Database column `script_variables.name`, type: `string`.
# @return [String, nil]
def name; end
# Database column `script_variables.description`, type: `string`.
# @param val [String, nil]
def description=(val); end
# Database column `script_variables.description`, type: `string`.
# @return [String, nil]
def description; end
# Database column `script_variables.value`, type: `text`.
# @param val [String, nil]
def value=(val); end
# Database column `script_variables.value`, type: `text`.
# @return [String, nil]
def value; end
# Database column `script_variables.created_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def created_at=(val); end
# Database column `script_variables.created_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def created_at; end
# Database column `script_variables.updated_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def updated_at=(val); end
# Database column `script_variables.updated_at`, type: `datetime`.
# @return [ActiveSupport::TimeWithZone, nil]
def updated_at; end
end
# %%<RailsAnnotateSolargraph:End:script_variables>%%
# %%<RailsAnnotateSolargraph:Start:sprints>%%
class DB::Sprint < ApplicationRecord
# `belongs_to` relation with `DB::Board`. Database column `sprints.board_id`.
# @param val [DB::Board, nil]
def board=(val); end
# `belongs_to` relation with `DB::Board`. Database column `sprints.board_id`.
# @return [DB::Board, nil]
def board; end
# `has_many` relation with `DB::SprintTask`. Database column `sprint_tasks.sprint_id`.
# @param val [Array<DB::SprintTask>, nil]
def sprint_tasks=(val); end
# `has_many` relation with `DB::SprintTask`. Database column `sprint_tasks.sprint_id`.
# @return [Array<DB::SprintTask>, nil]
def sprint_tasks; end
# `has_many` relation with `DB::Task` through `DB::SprintTask`.
# @param val [Array<DB::Task>, nil]
def tasks=(val); end
# `has_many` relation with `DB::Task` through `DB::SprintTask`.
# @return [Array<DB::Task>, nil]
def tasks; end
# Database column `sprints.id`, type: `integer`.
# @param val [Integer, nil]
def id=(val); end
# Database column `sprints.id`, type: `integer`.
# @return [Integer, nil]
def id; end
# Database column `sprints.name`, type: `string`.
# @param val [String, nil]
def name=(val); end
# Database column `sprints.name`, type: `string`.
# @return [String, nil]
def name; end
# Database column `sprints.started_at`, type: `datetime`.
# @param val [ActiveSupport::TimeWithZone, nil]
def started_at=(val); end