Skip to content
Browse files

changed hours float to minutes integer in sessions and got rid of dat…

…abase and logs from vc
  • Loading branch information...
1 parent 2aed78d commit d0adc415ed24058575092c57288a5fdb82d0e689 @cooperq committed
View
1 .gitignore
@@ -1,2 +1,3 @@
#ignore all logs
log/*
+db/*.sqlite3
View
5 app/views/sessions/edit.html.erb
@@ -20,8 +20,8 @@
<%= f.text_field :rate %>
</p>
<p>
- <%= f.label :hours %><br />
- <%= f.text_field :hours %>
+ <%= f.label :time %><br />
+ <%= f.text_field :minutes %>
</p>
<p>
<%= f.label :notes %><br />
@@ -34,3 +34,4 @@
<%= link_to 'Show', @session %> |
<%= link_to 'Back', sessions_path %>
+
View
3 app/views/sessions/index.html.erb
@@ -16,7 +16,7 @@
<td><%=h session.project_id %></td>
<td><%=h session.created_at %></td>
<td><%=h session.rate %></td>
- <td><%=h session.hours %></td>
+ <td><%=h session.minutes %></td>
<td><%=h session.notes %></td>
<td><%= link_to 'Show', session %></td>
<td><%= link_to 'Edit', edit_session_path(session) %></td>
@@ -28,3 +28,4 @@
<br />
<%= link_to 'New session', new_session_path %>
+
View
3 app/views/sessions/show.html.erb
@@ -8,7 +8,7 @@
<h2>Hours:</h2>
<div class='box' id='hours'>
- <%=h @session.hours %>
+ <%=h @session.minutes %>
</div>
<h2>Notes:</h2>
<div class='box'>
@@ -18,3 +18,4 @@
<%= link_to 'Edit', edit_session_path(@session) %> |
<%= link_to 'Back', @session.project %>
+
View
BIN db/development.sqlite3
Binary file not shown.
View
3 db/migrate/20090319005331_create_sessions.rb
@@ -4,7 +4,7 @@ def self.up
t.integer :user_id, :null => false
t.integer :project_id, :null => false
t.float :rate
- t.float :hours, :null => false, :default => 0
+ t.integer :minutes, :null => false, :default => 0
t.text :notes
t.timestamps
@@ -15,3 +15,4 @@ def self.down
drop_table :sessions
end
end
+
View
6 db/schema.rb
@@ -21,10 +21,10 @@
end
create_table "sessions", :force => true do |t|
- t.integer "user_id", :null => false
- t.integer "project_id", :null => false
+ t.integer "user_id", :null => false
+ t.integer "project_id", :null => false
t.float "rate"
- t.float "hours", :default => 0.0, :null => false
+ t.integer "minutes", :default => 0, :null => false
t.text "notes"
t.datetime "created_at"
t.datetime "updated_at"
View
12,037 log/development.log
0 additions, 12,037 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
0 log/production.log
No changes.
View
0 log/server.log
No changes.
View
0 log/test.log
No changes.

0 comments on commit d0adc41

Please sign in to comment.
Something went wrong with that request. Please try again.