Open-Source-Access-Control-.../db/migrate/20130212030630_create_payments.rb
2013-02-12 01:58:17 -07:00

12 lines
210 B
Ruby

class CreatePayments < ActiveRecord::Migration
def change
create_table :payments do |t|
t.references :user
t.date :date
t.timestamps
end
add_index :payments, :user_id
end
end