Adding payments

This commit is contained in:
2013-02-12 01:58:17 -07:00
parent 3fb774d057
commit ed75ea0e90
29 changed files with 447 additions and 60 deletions

View File

@@ -0,0 +1,11 @@
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

View File

@@ -0,0 +1,5 @@
class AddCreatedByToPayments < ActiveRecord::Migration
def change
add_column :payments, :created_by, :integer
end
end

View File

@@ -0,0 +1,5 @@
class AddPayeeToUsers < ActiveRecord::Migration
def change
add_column :users, :payee, :string
end
end

View File

@@ -0,0 +1,5 @@
class AddAccountantToUsers < ActiveRecord::Migration
def change
add_column :users, :accountant, :boolean
end
end