Sha256: f0c32a8394d6bc5288e79430fc90fcf67ac37f91a9a6ec16adbd5e62e52e4088
Contents?: true
Size: 629 Bytes
Versions: 7
Compression:
Stored size: 629 Bytes
Contents
class CreateSpreeCmsSections < ActiveRecord::Migration[5.2] def change create_table :spree_cms_sections do |t| t.column :name, :string, null: false t.column :content, :text t.column :settings, :text t.column :fit, :string t.column :destination, :string t.column :type, :string t.column :position, :integer t.references :linked_resource, polymorphic: true, index: { name: 'index_spree_cms_sections_on_linked_resource' } t.belongs_to :cms_page t.timestamps end add_index :spree_cms_sections, :type add_index :spree_cms_sections, :position end end
Version data entries
7 entries across 7 versions & 1 rubygems