diff --git a/gems/activerecord/6.0/_test/activerecord-generated.rb b/gems/activerecord/6.0/_test/activerecord-generated.rb index 70f6432b..1c3ec56a 100644 --- a/gems/activerecord/6.0/_test/activerecord-generated.rb +++ b/gems/activerecord/6.0/_test/activerecord-generated.rb @@ -26,3 +26,4 @@ class Article < ActiveRecord::Base User.includes(:address, :friends).to_a User.preload(:address, friends: [:address, :followers]) User.in_order_of(:id, [1, 5, 3]) +User.offset(5).limit(10) diff --git a/gems/activerecord/6.0/activerecord.rbs b/gems/activerecord/6.0/activerecord.rbs index f175903e..c24cef83 100644 --- a/gems/activerecord/6.0/activerecord.rbs +++ b/gems/activerecord/6.0/activerecord.rbs @@ -386,6 +386,8 @@ module ActiveRecord def last!: () -> Model def limit: (Integer | Arel::Nodes::SqlLiteral | nil) -> self def limit!: (Integer | Arel::Nodes::SqlLiteral | nil) -> self + def offset: (Integer) -> self + def offset!: (Integer) -> self def find_each: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Model) -> void } -> nil def find_in_batches: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Array[Model]) -> void } -> nil def in_batches: (?of: Integer, ?start: Integer, ?finish: Integer, ?load: bool, ?error_on_ignore: bool, ?order: untyped) { (self) -> void } -> nil @@ -472,6 +474,7 @@ module ActiveRecord | (Integer count) -> Array[Model] def last!: () -> Model def limit: (Integer | Arel::Nodes::SqlLiteral | nil) -> Relation + def offset: (Integer) -> Relation def lock: (?untyped locks) -> Relation def find_each: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Model) -> void } -> nil def find_in_batches: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Array[Model]) -> void } -> nil @@ -553,6 +556,8 @@ interface _ActiveRecord_Relation[Model, PrimaryKey] def last!: () -> Model def limit: (Integer | Arel::Nodes::SqlLiteral | nil) -> self def limit!: (Integer | Arel::Nodes::SqlLiteral | nil) -> self + def offset: (Integer) -> self + def offset!: (Integer) -> self def find_each: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Model) -> void } -> nil def find_in_batches: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Array[Model]) -> void } -> nil def in_batches: (?of: Integer, ?start: Integer, ?finish: Integer, ?load: bool, ?error_on_ignore: bool, ?order: untyped) { (self) -> void } -> nil @@ -637,6 +642,7 @@ interface _ActiveRecord_Relation_ClassMethods[Model, Relation, PrimaryKey] | (Integer count) -> Array[Model] def last!: () -> Model def limit: (Integer | Arel::Nodes::SqlLiteral | nil) -> Relation + def offset: (Integer) -> Relation def lock: (?untyped locks) -> Relation def find_each: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Model) -> void } -> nil def find_in_batches: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Array[Model]) -> void } -> nil