Skip to content

Commit

Permalink
#5 working on the donor and requester info at backend
Browse files Browse the repository at this point in the history
  • Loading branch information
hlee committed Nov 30, 2013
1 parent 053b2d9 commit 581de11
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
Binary file modified db/development.sqlite3
Binary file not shown.
6 changes: 6 additions & 0 deletions db/migrate/20131130215427_add_info_to_donor.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class AddInfoToDonor < ActiveRecord::Migration
def change
add_column :donors, :address, :string
add_column :donors, :image_url, :string
end
end
6 changes: 6 additions & 0 deletions db/migrate/20131130215440_add_info_to_requester.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class AddInfoToRequester < ActiveRecord::Migration
def change
add_column :requesters, :address, :string
add_column :requesters, :image_url, :string
end
end
6 changes: 5 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20131130191821) do
ActiveRecord::Schema.define(version: 20131130215440) do

create_table "admins", force: true do |t|
t.string "email", default: "", null: false
Expand Down Expand Up @@ -63,6 +63,8 @@
t.datetime "updated_at"
t.integer "product_id"
t.string "name"
t.string "address"
t.string "image_url"
end

add_index "donors", ["email"], name: "index_donors_on_email", unique: true
Expand Down Expand Up @@ -103,6 +105,8 @@
t.datetime "created_at"
t.datetime "updated_at"
t.string "name"
t.string "address"
t.string "image_url"
end

add_index "requesters", ["email"], name: "index_requesters_on_email", unique: true
Expand Down

0 comments on commit 581de11

Please sign in to comment.