Sha256: 3a0a37d46b82cfb65abb89985343b724d43a2945ff11bdad1a34390ead08cd06
Contents?: true
Size: 909 Bytes
Versions: 3
Compression:
Stored size: 909 Bytes
Contents
require 'alfa/database' require 'yaml' # Read more about the timestamps plugin: # http://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/Timestamps.html Sequel::Model.plugin :timestamps, update_on_create: true # Read more about prepared statements and the plugin: # http://sequel.jeremyevans.net/rdoc/files/doc/prepared_statements_rdoc.html # http://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/PreparedStatements.html # Sequel::Model.plugin :prepared_statements # Read more about available plugins: # http://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins.html # Main database for application private use module DB Main = Sequel.connect(YAML.load(File.open(File.expand_path('../passwords/db-main.yml', __FILE__))).symbolize_keys[:dsn], :encoding=>'utf8') end Dir[File.join(PROJECT_ROOT, 'db/main/models/*.rb')].each do |f| require f end Sequel.extension :blank
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alfa-0.0.8.pre | dummy/project/config/db.rb |
alfa-0.0.7.pre | dummy/project/config/db.rb |
alfa-0.0.6.pre | dummy/project/config/db.rb |