Skip to content

Commit

Permalink
added the complete flag on requests to distinguish between active/com…
Browse files Browse the repository at this point in the history
…plete requests
  • Loading branch information
manubete committed Jul 12, 2014
1 parent f2dade2 commit 9625754
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views/organizations/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
<div class="reqAcctBox">
<div class="box" style="height: 15em; margin-bottom: 3%;">
<div>
<button class="tfbutton" onclick="window.location.href='orgAccount.html'" href="postings.html">Make New Request</button>
<%= link_to "Make New Request", new_request_path, :class => "tfbutton" %>

</div>

<header class="reqHead" style="margin: 2% auto 2% auto; text-align: center;">Active Requests</header>
Expand Down
9 changes: 9 additions & 0 deletions db/migrate/20140712062308_add_complete_to_requests.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AddCompleteToRequests < ActiveRecord::Migration
def up
add_column :requests, :complete, :boolean
end

def down
remove_column :requests, :complete, :boolean
end
end
3 changes: 2 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 to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20140704000055) do
ActiveRecord::Schema.define(:version => 20140712062308) do

create_table "donors", :force => true do |t|
t.string "name"
Expand Down Expand Up @@ -42,6 +42,7 @@
t.string "address"
t.string "description"
t.string "purpose"
t.boolean "complete"
end

end

0 comments on commit 9625754

Please sign in to comment.