Commit 4cbd076327e9740fb3c5666472cedf35728a259a

Authored by Niklas
1 parent e0dab1c998
Exists in master

load database config from database.yml

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

1 1 require 'active_record'
2 2  
3   -ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => "db.sqlite")
  3 +ActiveRecord::Base.establish_connection(YAML.read_file("database.yml"))
4 4  
5 5 class Expression < ActiveRecord::Base
6 6 belongs_to :filter