Sha256: a89915cb786762e198e1851d603a6d7812c42e2775d36ddf26a750bd4aeae246

Contents?: true

Size: 725 Bytes

Versions: 11

Compression:

Stored size: 725 Bytes

Contents

Description:
  Create a new database view for your application. This will create a new
  view definition file and the accompanying migration.

  If a view of the given name already exists, create a new version of the view
  and a migration to replace the old version with the new.

  To create a materialized view, pass the '--materialized' option.
  To create a materialized view with NO DATA, pass '--no-data' option.

Examples:
    rails generate scenic:view searches

      create: db/views/searches_v01.sql
      create: db/migrate/20140803191158_create_searches.rb

    rails generate scenic:view searches

      create: db/views/searches_v02.sql
      create: db/migrate/20140804191158_update_searches_to_version_2.rb

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
scenic-1.8.0 lib/generators/scenic/view/USAGE
scenic-1.7.0 lib/generators/scenic/view/USAGE
scenic-1.6.0 lib/generators/scenic/view/USAGE
scenic-1.5.5 lib/generators/scenic/view/USAGE
scenic-jets-1.5.5 lib/generators/scenic/view/USAGE
scenic-jets-1.5.4 lib/generators/scenic/view/USAGE
scenic-1.5.4 lib/generators/scenic/view/USAGE
scenic-1.5.3 lib/generators/scenic/view/USAGE
scenic-1.5.2 lib/generators/scenic/view/USAGE
scenic-1.5.1 lib/generators/scenic/view/USAGE
scenic-1.5.0 lib/generators/scenic/view/USAGE