Method: Sequel::Database#drop_view
- Defined in:
- lib/sequel/database/schema_methods.rb
#drop_view(*names) ⇒ Object
Drops a view:
DB.drop_view(:cheap_items)
120 121 122 123 124 125 |
# File 'lib/sequel/database/schema_methods.rb', line 120 def drop_view(*names) names.each do |n| remove_cached_schema(n) execute_ddl("DROP VIEW #{quote_schema_table(n)}") end end |