Advertisement
Guest User

Untitled

a guest
Nov 4th, 2015
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.34 KB | None | 0 0
  1. require 'rubygems'
  2. require 'data_mapper'
  3. require 'sinatra'
  4. require 'json'
  5.  
  6.  
  7. DataMapper::Logger.new("log/datamapper.log", :debug)
  8. DataMapper.setup(:default,'mysql://root@localhost/larry')
  9.  
  10.  
  11.  
  12. class Event
  13.   include DataMapper::Resource
  14.  
  15.   property :id,         Serial
  16.   property :battleTag,   String
  17.   property :reg_date, DateTime
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement