Sha256: ae2907b1a3c39638a259452c124accf8d9e3b8fe7a74a69fcc273fce167df652

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

class CreateCasCategories < ActiveRecord::Migration[5.0]
  def change
    create_table :cas_categories, id: :uuid do |t|
      t.uuid :section_id, null: false
      t.string :name, null: false
      t.string :slug
      t.jsonb :metadata, default: '{}'

      t.timestamps
    end
    add_index :cas_categories, :section_id
    add_index :cas_categories, :slug
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 db/migrate/20170613175912_create_cas_categories.rb
cas-cms-1.0.0.alpha1 db/migrate/20170613175912_create_cas_categories.rb
cas-cms-0.1.3 db/migrate/20170613175912_create_cas_categories.rb
cas-cms-0.1.2 db/migrate/20170613175912_create_cas_categories.rb
cas-cms-0.1.1 db/migrate/20170613175912_create_cas_categories.rb
cas-cms-0.1.0 db/migrate/20170613175912_create_cas_categories.rb