Sha256: 902452033a90da12c6b9c7abd2ba51d63236df1e151ca56e920297b3ab07b201
Contents?: true
Size: 489 Bytes
Versions: 18
Compression:
Stored size: 489 Bytes
Contents
module SchemaPlus::ForeignKeys module Middleware module Mysql module Migration module DropTable def around(env) if (env.options[:force] == :cascade) env.connection.reverse_foreign_keys(env.table_name).each do |foreign_key| env.connection.remove_foreign_key(foreign_key.from_table, name: foreign_key.name) end end yield env end end end end end end
Version data entries
18 entries across 18 versions & 2 rubygems