Skip to content

Instantly share code, notes, and snippets.

@jimwhimpey
Created April 15, 2011 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimwhimpey/921115 to your computer and use it in GitHub Desktop.
Save jimwhimpey/921115 to your computer and use it in GitHub Desktop.
class WFModule
include DataMapper::Resource
storage_names[:default] = 'Modules'
property :id, Serial, :field => 'ModuleID'
property :module_name, String, :field => 'ModuleName'
property :module_fields, String, :field => 'ModuleFields'
property :parameters, String, :field => 'ModuleParameters'
property :author, String, :field => 'ModuleAuthor'
property :issue, String, :field => 'ModuleIssue'
property :deprecated, String, :field => 'ModuleDeprecated'
property :functional_spec, String, :field => 'ModuleFunctionalSpec'
end
@modules = WFModule.all(:repository => :default)
#=> Table 'wf_documentation.wf_modules' doesn't exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment