Sha256: 674aed244294ff8e8d8607cbddb464942083010f3cdd7c4dcc2494cd8e6e0b41

Contents?: true

Size: 658 Bytes

Versions: 9

Compression:

Stored size: 658 Bytes

Contents

class CreateLogisticsCoreOperationDocuments < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_operation_documents do |t|
      t.references :operation, index: { name: 'od_on_operation_indx' }
      t.string :document, null: false
      t.integer :original, null: false
      t.integer :copy, null: false
      t.integer :certified, null:false
      t.boolean :is_mandatory, null: false, default: false
      t.boolean :is_accepted, null: false, default: false
      t.string :source

      t.timestamps
    end
    add_foreign_key :logistics_core_operation_documents, :logistics_core_operations, :column => :operation_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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