Sha256: 6b062764703f0665b40c7ae5ded7b861af2fc82f8523aaabf255861e66ba32a2

Contents?: true

Size: 581 Bytes

Versions: 36

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true
# This migration comes from noid_rails_engine (originally 20160610010003)

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

36 entries across 25 versions & 1 rubygems

Version Path
hyrax-4.0.0.rc1 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.5.0 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-4.0.0.beta2 .koppie/db/migrate/20210911143623_create_minter_states.noid_rails_engine.rb
hyrax-4.0.0.beta2 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.4.2 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-4.0.0.beta1 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.4.1 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.4.0 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.3.0 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.2.0 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.1.0 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.0.2 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.0.1 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.0.0 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.0.0.pre.rc4 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb
hyrax-3.0.0.pre.rc3 .dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb