Sha256: f318e84ee76a68850a65fe2b562ed209186199b7e4dd8fd3355d02daf1bfa00e

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true
class CreateMinterStates < ActiveRecord::Migration
  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

4 entries across 4 versions & 1 rubygems

Version Path
active_fedora-noid-2.0.2 db/migrate/20160610010003_create_minter_states.rb
active_fedora-noid-2.0.1 db/migrate/20160610010003_create_minter_states.rb
active_fedora-noid-2.0.0 db/migrate/20160610010003_create_minter_states.rb
active_fedora-noid-2.0.0.beta6 db/migrate/20160610010003_create_minter_states.rb