Module: SchemaPlus::Tables::Middleware::Migration::DropTable
- Defined in:
- lib/schema_plus/tables/middleware.rb
Defined Under Namespace
Modules: Mysql, Postgresql, Sqlite3
Instance Method Summary collapse
Instance Method Details
#before(env) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/schema_plus/tables/middleware.rb', line 7 def before(env) if env.[:cascade] ActiveSupport::Deprecation.warn "drop_table option `cascade: true` is deprecated, use `force: :cascade` instead" env.[:force] = :cascade end end |