Sha256: 8319668f36fb8e417981d188112859ed392010b396959ed147631c065d2581ae

Contents?: true

Size: 272 Bytes

Versions: 2

Compression:

Stored size: 272 Bytes

Contents

class CreateCarts < ActiveRecord::Migration
  def self.up
    create_table :carts do |t|
      t.belongs_to  :user
      t.float    :discount
      t.integer  :percent
      t.text :options
      t.timestamps
    end
  end

  def self.down
    drop_table :carts
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 db/migrate/20091009134525_create_carts.rb
forgeos_commerce-1.9.0 db/migrate/20091009134525_create_carts.rb