Adding payments
This commit is contained in:
11
db/migrate/20130212030630_create_payments.rb
Normal file
11
db/migrate/20130212030630_create_payments.rb
Normal 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
|
||||
5
db/migrate/20130212032046_add_created_by_to_payments.rb
Normal file
5
db/migrate/20130212032046_add_created_by_to_payments.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddCreatedByToPayments < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :payments, :created_by, :integer
|
||||
end
|
||||
end
|
||||
5
db/migrate/20130212054755_add_payee_to_users.rb
Normal file
5
db/migrate/20130212054755_add_payee_to_users.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddPayeeToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :payee, :string
|
||||
end
|
||||
end
|
||||
5
db/migrate/20130212083412_add_accountant_to_users.rb
Normal file
5
db/migrate/20130212083412_add_accountant_to_users.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddAccountantToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :accountant, :boolean
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user