Method: Scenic::Adapters::Postgres#drop_view

Defined in:
lib/scenic/adapters/postgres.rb

#drop_view(name) ⇒ void

This method returns an undefined value.

Drops the named view from the database

This is typically called in a migration via Statements#drop_view.

Parameters:

  • name

    The name of the view to drop



121
122
123
# File 'lib/scenic/adapters/postgres.rb', line 121

def drop_view(name)
  execute "DROP VIEW #{quote_table_name(name)};"
end