Sha256: 8758cc4d8990d4f41b8dd46a5a6b88cf99b7e0018e7656c0d4319351f8fe96e2

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

class CreateBlockKinds < ActiveRecord::Migration[5.0]
  def change
    create_table :block_kinds do |t|
      t.string :name
      t.text :description
      t.string :category
      t.boolean :active, default: true, null: false

      t.timestamps
    end
    add_index :block_kinds, :name, unique: true
    add_index :block_kinds, :category
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forest_cms-0.98.1 db/migrate/20170109175932_create_block_kinds.rb