I have a rather large project that uses ActiveRecord both with Rails,
and separately in various scripts. All has been working well until
I upgraded from version 2.0.2 to version 2.2.2. Now, ActiveRecord
doesn’t seem to be looking for the correct table. Here’s an example
of what I’m seeing.
conf = Hash.new
IO.foreach("/etc/dbconf") do |line|
next if line.length == 0
name, data = line.split(": ")
conf[name] = data.chomp
Conf = get_dbconf
class Scode < ActiveRecord::Base
irb(main):001:0> require ‘scode’
=> Scode(Table doesn’t exist)
I know I can set the table name manually, but if this simple mechanism
is broken, how much other stuff is broken in this version?
I use the words you taught me. If they don’t mean anything any more,
teach me others. Or let me be silent.
Samuel Beckett (Clov, Endgame)