Skip to content

Commit

Permalink
Include SchemaStatements under AR::Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
KaanOzkan committed Aug 30, 2022
1 parent 276bab9 commit 869d6c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rbi/annotations/activerecord.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ class ActiveRecord::Schema
sig {params(info: T::Hash[T.untyped, T.untyped], blk: T.proc.bind(ActiveRecord::Schema).void).void}
def self.define(info = nil, &blk); end
end

class ActiveRecord::Migration
# @shim: Methods on migration are delegated to `SchemaStatements` using `method_missing`
include ActiveRecord::ConnectionAdapters::SchemaStatements
end

0 comments on commit 869d6c0

Please sign in to comment.