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'}, ]) Scrivito::ObjClass.create(name: 'Scrivito::ContentWidget', attributes: [ {name: 'content', type: 'reference'} ]) Page.create(_path: '/', title: 'Welcome to Scrivito!', body: [ HeadlineWidget.new(headline: 'A professional Cloud CMS built for Ruby on Rails.'), TextWidget.new(text: %{
With Scrivito, you can develop your website like you always did. It just works, and it just works "The Rails Way".
Your clients can edit content in-place, directly on the website itself. Intuitively, without any training or HTML skills.
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.
}) ]) end end