liveh2o / spectacles

ActiveRecord Views for PostgreSQL
MIT License
90 stars 11 forks source link

Override drop_table method #9

Closed newellista closed 8 years ago

newellista commented 9 years ago

When a view is created on a table, it creates a dependency on that table. Currently, when a schema is loaded, if the table and view already exist, the drop_table call fails, since the view still exists.

The solution is to append the CASCADE option on the drop_table command.

hasghari commented 8 years ago

Is this ready to merge?

liveh2o commented 8 years ago

Yeah, this is good to go. I haven't been keeping up on my notifications... Releasing now.

liveh2o commented 8 years ago

I had to revert this. Will open again with support for Sqlite.