From 869d6c092b7430f93b474cc7a1ed44ad2ff84611 Mon Sep 17 00:00:00 2001 From: Kaan Ozkan Date: Mon, 29 Aug 2022 16:19:55 -0400 Subject: [PATCH] Include SchemaStatements under AR::Migration --- rbi/annotations/activerecord.rbi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rbi/annotations/activerecord.rbi b/rbi/annotations/activerecord.rbi index 347a5872..709ffb64 100644 --- a/rbi/annotations/activerecord.rbi +++ b/rbi/annotations/activerecord.rbi @@ -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