shin1ohno/event_cal

View on GitHub
sample/app_3.2.13/db/migrate/20130117153207_create_orders.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateOrders < ActiveRecord::Migration
  def change
    create_table :orders do |t|
      t.date :delivery_on
      t.string :product_name
      t.string :tenant_name
      t.references :user

      t.timestamps
    end
    add_index :orders, :user_id
  end
end