Sha256: e784d1e2d0af81b25f9c650866ed90b5e71cdc04aeac9346c1147f3b1c418048

Contents?: true

Size: 402 Bytes

Versions: 17

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

# Creates the authorizations table
class CreateAuthorizations < ActiveRecord::Migration[6.1]
  def change
    create_table :authorizations do |t|
      t.string :status, null: false, default: "pending", index: true
      t.timestamp :expires, null: false, index: true
      t.text :identifier, null: false

      t.belongs_to :order

      t.timestamps
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bullion-0.7.3 db/migrate/20210106052306_create_authorizations.rb
bullion-0.7.2 db/migrate/20210106052306_create_authorizations.rb
bullion-0.7.1 db/migrate/20210106052306_create_authorizations.rb
bullion-0.7.0 db/migrate/20210106052306_create_authorizations.rb
bullion-0.6.2 db/migrate/20210106052306_create_authorizations.rb
bullion-0.6.1 db/migrate/20210106052306_create_authorizations.rb
bullion-0.6.0 db/migrate/20210106052306_create_authorizations.rb
bullion-0.5.1 db/migrate/20210106052306_create_authorizations.rb
bullion-0.5.0 db/migrate/20210106052306_create_authorizations.rb
bullion-0.4.3 db/migrate/20210106052306_create_authorizations.rb
bullion-0.4.2 db/migrate/20210106052306_create_authorizations.rb
bullion-0.4.1 db/migrate/20210106052306_create_authorizations.rb
bullion-0.4.0 db/migrate/20210106052306_create_authorizations.rb
bullion-0.3.3 db/migrate/20210106052306_create_authorizations.rb
bullion-0.3.2 db/migrate/20210106052306_create_authorizations.rb
bullion-0.3.1 db/migrate/20210106052306_create_authorizations.rb
bullion-0.3.0 db/migrate/20210106052306_create_authorizations.rb