Skip to content

Commit

Permalink
Merge pull request #102 from Shopify/ko/ar-migration
Browse files Browse the repository at this point in the history
Include SchemaStatements under ActiveRecord::Migration
  • Loading branch information
KaanOzkan authored Aug 30, 2022
2 parents 276bab9 + 869d6c0 commit 5fd791d
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 5fd791d

Please sign in to comment.