Sha256: a6c03a03c4ca4fd1439a7e8d131c77d923a67ea473ac8280a3317bc78cfaf7f9

Contents?: true

Size: 1.79 KB

Versions: 14

Compression:

Stored size: 1.79 KB

Contents

class InstallScrivitoMigration < Scrivito::Migration
  def up
    Scrivito::ObjClass.create(name: 'Page', attributes: [
      {name: 'title', type: 'string'},
      {name: 'body',     type: 'widget'},
      {name: 'child_order', type: 'referencelist'},
    ])

    Scrivito::ObjClass.create(name: 'HeadlineWidget', attributes: [
      {name: 'headline', type: 'string'},
    ])

    Scrivito::ObjClass.create(name: 'TextWidget', attributes: [
      {name: 'text', type: 'html'},
    ])

    Scrivito::ObjClass.create(name: 'Image', attributes:[
      {name: 'blob', type: 'binary'},
    ])

    Scrivito::ObjClass.create(name: 'ImageWidget', attributes: [
      {name: 'image',  type: 'reference'}
    ])

    Scrivito::ObjClass.create(name: 'Download', attributes:[
      {name: 'blob', type: 'binary'},
    ])

    Page.create(_path: '/', title: 'Welcome to Scrivito!', body: [
      HeadlineWidget.new(headline: 'A professional Cloud CMS built for Ruby on Rails.'),
      TextWidget.new(text: %{
        <h3>Add content management to your website</h3>
        <p>
        With Scrivito, you can develop your website like you always did.
        It just works, and it just works "The Rails Way".
        </p>
        <h3>No training for your editors required.</h3>
        <p>
        Your clients can edit content in-place, directly on the website itself.
        Intuitively, without any training or HTML skills.
        </p>
        <h3>No installation required</h3>
        <p>
        You should focus on the important things:
        Developing the functionality and look of your website.
        That's why we built Scrivito as a cloud service.
        So you don't have to keep on updating your CMS or worry about uptime all the time.
        And you always get the newest features.
        </p>
      })
    ])
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
scrivito_sdk-0.50.1 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.50.0 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.50.0.rc2 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.50.0.rc1 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.42.1 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.42.1.rc3 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.42.1.rc2 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.42.1.rc1 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.42.0 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.41.1 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.41.0 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.41.0.rc2 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.40.0 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
scrivito_sdk-0.40.0.rc2 lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb