Sha256: 61f12631c642dacbabf606c83e33263e85b1a6ee9fdb79a308939a9468af8c2a

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

require 'mcfly'

class CreateMarketPrices < McFlyMigration
  def change
    create_table :market_prices do |t|
      t.references :security_instrument, null: false
      t.decimal :coupon, null: false
      t.integer :settlement_mm, null: false
      t.integer :settlement_yy, null: false
      # NULL indicates unknown price
      t.decimal :price
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mcfly-0.0.5 spec/dummy/db/migrate/002_create_market_prices.rb
mcfly-0.0.4 spec/dummy/db/migrate/002_create_market_prices.rb
mcfly-0.0.3 spec/dummy/db/migrate/002_create_market_prices.rb
mcfly-0.0.2 spec/dummy/db/migrate/002_create_market_prices.rb
mcfly-0.0.1 spec/dummy/db/migrate/002_create_market_prices.rb