Manage Setting Hierarchies Addon for Database Support (ConfDb, Props Model, etc.)
- home :: github.com/rubycoco/core
- bugs :: github.com/rubycoco/core/issues
- gem :: rubygems.org/gems/props-activerecord
- rdoc :: rubydoc.info/gems/props-activerecord
Example:
require 'props/activerecord' # include database support
ConfDb.create # build schema / tables (props)
Prop.create!( key: 'db.schema.version', '1.0.0' )
puts "Props:"
Prop.order( 'created_at asc' ).all.each do |prop|
puts " #{prop.key} / #{prop.value} | #{prop.created_at}"
end
More examples:
ConfDb.tables # dump stats to console
ConfDb.delete! # delete all records
The props-activerecord
scripts are dedicated to the public domain.
Use it as you please with no restrictions whatsoever.