#coding:utf-8
require 'rubygems'
require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter=> "jdbcmysql",
:host => "10.10.243.182",
:database=> "pop_cis",
:username => "root",
:password => "123"
)
class OP < ActiveRecord::Base
self.table_name="opponent_product"
end
op=OP.last
print op.id