Sha256: 08901f3bcc338914f038c6b4a28b75d77edadb8166f3cc93d700302cf559b6f8

Contents?: true

Size: 449 Bytes

Versions: 5

Compression:

Stored size: 449 Bytes

Contents

class AddUnderlyings < ActiveRecord::Migration

  def change
    # Calculated characteristics of underlying Contract (volatile)
    create_table(:underlyings) do |t|
      t.references :contract
      t.integer :con_id #  # int: The unique contract identifier specifying the security
      t.float :delta # double: The underlying stock or future delta
      t.float :price #  double: The price of the underlying
      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ib-ruby-0.8.1 db/migrate/151_add_underlyings.rb
ib-ruby-0.8.0 db/migrate/151_add_underlyings.rb
ib-ruby-0.7.12 db/migrate/151_add_underlyings.rb
ib-ruby-0.7.11 db/migrate/151_add_underlyings.rb
ib-ruby-0.7.10 db/migrate/151_add_underlyings.rb