J
Jakub Flaška
Hello I have this small script:
----------------------
require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter => 'mysql',
:database => 'cards',
:username => 'user',
assword => 'myPassword',
:host => 'localhost',
:charset => 'utf8',
:encoding => 'utf8',
ort => '3306')
class Start < ActiveRecord::Base
set_table_name "grb_tGStart"
set_primary_key "start_id"
has_many osts
end
starts = Start.findall, :conditions => [ "agency_id = (?) AND
is_active = (?)", 17, 1 ])
----------------------
require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter => 'mysql',
:database => 'cards',
:username => 'user',
assword => 'myPassword',
:host => 'localhost',
:charset => 'utf8',
:encoding => 'utf8',
ort => '3306')
class Start < ActiveRecord::Base
set_table_name "grb_tGStart"
set_primary_key "start_id"
has_many osts
end
starts = Start.findall, :conditions => [ "agency_id = (?) AND
is_active = (?)", 17, 1 ])