Sha256: 5e60c21802be8250b507db9aa46a009eb4d765590d9eb1b0c5fe3f8125696aee

Contents?: true

Size: 387 Bytes

Versions: 22

Compression:

Stored size: 387 Bytes

Contents

class CreateCmorShowcaseItems < ActiveRecord::Migration[5.2]
  def change
    create_table :cmor_showcase_items do |t|
      t.references :category, foreign_key: false
      t.string :identifier
      t.string :name
      t.text :body
      t.integer :position
      t.timestamp :published_at
      t.string :slug

      t.timestamps

      t.index :slug, unique: true
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cmor_showcase-0.0.38.pre db/migrate/20190728100031_create_cmor_showcase_items.rb
cmor_showcase-0.0.37.pre db/migrate/20190728100031_create_cmor_showcase_items.rb