Sha256: b16fa62e7396e28d64041020f03c24cfaad211dbad0a47856a88208a87c8f2f8

Contents?: true

Size: 534 Bytes

Versions: 2

Compression:

Stored size: 534 Bytes

Contents

class CreatePlotlineEntries < ActiveRecord::Migration
  def change
    create_table :plotline_entries do |t|
      t.string :type, index: true
      t.string :title
      t.string :slug, index: true
      t.text :body
      t.json :payload
      t.datetime :published_at
      t.integer :status, default: 0, index: true
      t.text :tags, array: true, default: []
      t.integer :parent_id, index: true
      t.string :checksum

      t.timestamps null: false
    end

    add_index :plotline_entries, :tags, using: 'gin'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plotline-0.1.1 db/migrate/20150831131759_create_plotline_entries.plotline.rb
plotline-0.1.0 db/migrate/20150831131759_create_plotline_entries.plotline.rb