Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rubygems"
- require "data_mapper"
- DataMapper.setup(:backup, {
- :adapter => "postgres",
- :database => "core_ggs_backup",
- :username => "merbivore",
- :password => "merbivore",
- :host => "localhost"
- })
- repository(:backup).adapter.resource_naming_convention =
- DataMapper::NamingConventions::UnderscoredAndPluralized
- class Location
- include DataMapper::Resource
- property :id, Fixnum, :serial => true
- end
- puts DataMapper.repository(:backup).adapter.exists?("locations")
Add Comment
Please, Sign In to add comment