Sha256: 4d95dfa0cbe573527f979f794d4bf6a0f11de9cc30a7b3cf4c986d98b242b738

Contents?: true

Size: 448 Bytes

Versions: 9

Compression:

Stored size: 448 Bytes

Contents

class CreateLogisticsCoreDeclarationTypes < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_declaration_types do |t|
      t.string :code, null: false, unique: true
      t.string :name, null: false
      t.references :transaction_type, index: { name: 'dt_on_tt_indx' }

      t.timestamps
    end

    add_foreign_key :logistics_core_declaration_types, :logistics_core_lookups, :column => :transaction_type_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 db/migrate/20170310060510_create_logistics_core_declaration_types.rb
logistics_core-21.11.1 db/migrate/20170310060510_create_logistics_core_declaration_types.rb
logistics_core-21.08.1 db/migrate/20170310060510_create_logistics_core_declaration_types.rb
logistics_core-21.03.1 db/migrate/20170310060510_create_logistics_core_declaration_types.rb
logistics_core-20.10.3 db/migrate/20170310060510_create_logistics_core_declaration_types.rb
logistics_core-20.10.2 db/migrate/20170310060510_create_logistics_core_declaration_types.rb
logistics_core-20.10.1 db/migrate/20170310060510_create_logistics_core_declaration_types.rb
logistics_core-20.9.1 db/migrate/20170310060510_create_logistics_core_declaration_types.rb
logistics_core-20.8.1 db/migrate/20170310060510_create_logistics_core_declaration_types.rb