Displaying 1 result from an estimated 1 matches for "hostdowntime".
Did you mean:
host_downtime
2006 Aug 11
0
habtm in a standalone ruby script broken?
...hieved with
$LOAD_PATH << ''...../availdb/app/models''
require ''rubygems''
require_gem ''activerecord''
require ''host_downtime''
require ''host_scheduled_downtime''
And in .../app/models/host_downtime.rb:
class HostDowntime < ActiveRecord::Base
has_and_belongs_to_many :host_scheduled_downtimes
...
And in .../app/models/host_scheduled_downtime.rb:
class HostScheduledDowntime < ActiveRecord::Base
has_and_belongs_to_many :host_downtimes
...
this works fine, until i introduce a table_prefix with
ActiveRecord:...