added a pay controller and model

This commit is contained in:
cktricky
2014-03-14 20:29:14 -04:00
parent 419b5bbfdc
commit 2c8781ebc1
11 changed files with 67 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
class CreatePays < ActiveRecord::Migration
def change
create_table :pays do |t|
t.integer :user_id
t.string :bank_account_num
t.string :bank_routing_num
t.integer :percent_of_deposit
t.timestamps
end
end
end
+10 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20140312002642) do
ActiveRecord::Schema.define(:version => 20140315002730) do
create_table "benefits", :force => true do |t|
t.datetime "created_at", :null => false
@@ -44,6 +44,15 @@ ActiveRecord::Schema.define(:version => 20140312002642) do
t.datetime "updated_at", :null => false
end
create_table "pays", :force => true do |t|
t.integer "user_id"
t.string "bank_account_num"
t.string "bank_routing_num"
t.integer "percent_of_deposit"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "performances", :force => true do |t|
t.integer "user_id"
t.date "date_submitted"