Sha256: cbb93cb60c11b450b9c45d9903b864f5b5e6ef29fb73e79b5d339a81e5aa4611
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 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.boolean :_init, null: false, default: false 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
editable_components-0.1.0 | db/migrate/20170414173603_create_editable_components_blocks.rb |