Sha256: da0e13453255c4f9d82a06ce6c7ba7f1eb78d11b3a18729cb1744c1305a1e82d
Contents?: true
Size: 645 Bytes
Versions: 4
Compression:
Stored size: 645 Bytes
Contents
class CreateEditableComponentsBlocks < ActiveRecord::Migration[5.0] def change create_table :editable_components_blocks do |t| t.string :block_type, null: false, default: 'text' t.integer :version, null: false, default: 0 t.string :name, null: false, default: '' t.integer :position, null: false, default: 0 t.boolean :published, null: false, default: true t.string :options, null: false, default: '{}' t.string :validations, null: false, default: '{}' t.integer :parent_id t.string :parent_type end add_index :editable_components_blocks, [:parent_id, :parent_type] end end
Version data entries
4 entries across 4 versions & 1 rubygems