Adding payments
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddCreatedByToPayments < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :payments, :created_by, :integer
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddPayeeToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :payee, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddAccountantToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :accountant, :boolean
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user