Skip to content

Commit

Permalink
tinkering with new database setup and instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhogan committed Oct 27, 2011
1 parent d3296b0 commit ecf16a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions application.rb
Expand Up @@ -10,19 +10,15 @@ class Navigation

include DataMapper::Resource

property :id , Serial, :required => true
property :created_at , DateTime
property :id , Serial, :required => true
property :department , String
property :location , String

end

DataMapper.finalize.auto_upgrade!

post '/' do

newRow.created_at = Time.now
newRow.save

end
nav = Navigation.create department: "Web Design & Interactive Media", location: "/wdim"

get '/' do

Expand Down
Binary file modified database.db
Binary file not shown.

0 comments on commit ecf16a3

Please sign in to comment.