PMACS / scenic_oracle_enhanced_adapter

OracleEnhanced adapter for Scenic gem.
MIT License
5 stars 2 forks source link

drop_view Fails With Parameters #15

Closed RaymondFallon closed 5 years ago

RaymondFallon commented 5 years ago

Problem

When rolling back a migration that uses change instead of up and down methods, it is common to see a line like this:


create_view :my_schema, sql_definition: view_sql

The sql_definition parameter, which is needed for create_view is not needed for drop_view, when this migration is being reversed. At present, this parameter is still being passes, throwing an error.

Solution

Ignore the sql_definition parameter if it is passed to drop_view.