Sha256: d94741d441c2f0348479f9c64e279941b3e37d3e1d6ee53615f3bae17ce512c0

Contents?: true

Size: 536 Bytes

Versions: 10

Compression:

Stored size: 536 Bytes

Contents

class CreateAccordionWidget < ::Scrivito::Migration
  def up
    Scrivito::ObjClass.create(
      name: 'AccordionWidget',
      is_binary: false,
      attributes: [
        {
          name: 'panels',
          type: :widget,
        },
      ]
    )

    Scrivito::ObjClass.create(
      name: 'AccordionPanelWidget',
      is_binary: false,
      attributes: [
        {
          name: 'headline',
          type: :string,
        },
        {
          name: 'content',
          type: :widget,
        },
      ]
    )
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
scrivito_accordion_widget-1.0.16 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.14 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.12 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.11 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.10 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.9 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.8 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.7 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.6 scrivito/migrate/0_create_accordion_widget.rb
scrivito_accordion_widget-1.0.2 scrivito/migrate/0_create_accordion_widget.rb