Massive Cleanup
[cs356-p2-videostore.git] / db / migrate / 001_create_customers.rb
1 class CreateCustomers < ActiveRecord::Migration
2   def self.up
3     create_table :customers do |t|
4       t.column :name, :string
5       t.column :address, :string
6       t.column :email, :string
7       t.column :phone, :string
8       t.column :debt, :decimal, :precision => 8, :scale => 2, :default => 0
9     end
10   end
11
12   def self.down
13     drop_table :customers
14   end
15 end