Sha256: c8f0ff98f826e0bdcbdc85d68a566987cd92d1187ded648a35133e68e2bab962

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

class CreatePapercatDocuments < ActiveRecord::Migration
  def change
    create_table :papercat_documents do |t|
      t.string :type
      t.jsonb :data, default: {}

      t.timestamps null: false
    end
    execute "CREATE INDEX on papercat_documents USING GIN (data jsonb_path_ops);"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
papercat-0.0.2 db/migrate/20160302230547_create_papercat_documents.rb