Open-Source-Access-Control-.../db/migrate/20130212030630_create_payments.rb

12 lines
210 B
Ruby
Raw Normal View History

2013-02-12 08:58:17 +00:00
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