Sha256: 36c5873bef45cceb8b727dd138168f29c0a5b9622a6813b73154b5374a3bffb9

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

class CreateOrders < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
      t.integer :user_id,       :null=>false
      t.enum    :order_status,  :limit=>[:ORPHAN, :PENDING, :ACTIVE, :SUSPENDED, :COMPLETED], :default=>:ORPHAN
      t.timestamps
    end
  end

  def self.down
    drop_table :orders
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
smukherjee-openbill-0.1.5 db/migrate/20090518105551_create_orders.rb
smukherjee-openbill-0.1.6 db/migrate/20090518105551_create_orders.rb
smukherjee-openbill-0.1.7 db/migrate/20090518105551_create_orders.rb
openbill-0.1.5 db/migrate/20090518105551_create_orders.rb
openbill-0.1.6 db/migrate/20090518105551_create_orders.rb