Sha256: e871bc80b433859d74ece21d630448cd42c3e2fff3b24f871303f061d93bae06

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

# frozen_string_literal: true
class CreateMinterStates < ActiveRecord::Migration[4.2]
  def change
    create_table :minter_states do |t|
      t.string :namespace, null: false, default: 'default'
      t.string :template, null: false
      t.text :counters
      t.bigint :seq, default: 0
      t.binary :random
      t.timestamps null: false
    end
    # Use both model and DB-level constraints for consistency while scaling horizontally
    add_index :minter_states, :namespace, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_fedora-noid-2.2.0 db/migrate/20160610010003_create_minter_states.rb
active_fedora-noid-2.1.0 db/migrate/20160610010003_create_minter_states.rb