Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'data_mapper'
- require 'sinatra'
- require 'json'
- DataMapper::Logger.new("log/datamapper.log", :debug)
- DataMapper.setup(:default,'mysql://root@localhost/larry')
- class Event
- include DataMapper::Resource
- property :id, Serial
- property :battleTag, String
- property :reg_date, DateTime
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement