Sha256: f5c7cd91a8e1ef505b6aa4ebf592f76023e0ad79c8ef3e8642d8a4f030580cae
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
class CreateShopperOrders < ActiveRecord::Migration[5.0] def change create_table :shopper_orders do |t| t.belongs_to :delivery, foreign_key: { to_table: :shopper_deliveries } t.string :number, default: '' t.datetime :completed_at t.boolean :use_billing, default: false, null: false t.belongs_to :customer, polymorphic: true t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoppper-0.1.0 | db/migrate/20170129160931_create_shopper_orders.rb |