Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AmethystModel < ActiveRecord::Base
- @amethyst_conn = ActiveRecord::Base.establish_connection
- (
- {
- :adapter => 'mysql2',
- :database => 'RemouteDB',
- :host => 'examle.remoutehost.com',
- :username => 'root',
- :password => "root"
- }
- )
- end
- def self.get_all_from_amethyst
- sql = sanitize_sql(["SELECT * from RemouteDB.param_delay order by sequence"])
- @all_amethyst = @amethyst_conn.connection.execute(sql)
- end
- ActionView::Template::Error (Mysql2::Error: Table 'RemouteDB.param_delay' doesn't exist: SELECT MAX(sequence) as max from RemouteDB.param_delay)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement