I’m trying to migrate the AR script on to Oracle database. Im using jdbc
adapter.
There are number of functions defined in jdbc_oracle.rb, but when I call
them (eg: rename_column(…)) in my AR script, it says “rake aborted !!
rename_column is not implemented” .
It is not referring to the jdbc_oracle.rb file. Is there any
configuration setting to be done?
I have written many custom functions in jdbc_postgre.rb and
jdbc_mssql.rb, it works absolutely fine.
Please find the sample code attached.
1. 001_rename_columns.rb (file to migrate)
class CreateOrclTables < ActiveRecord::Migration
def self.up
rename_column(:companyprofile, :tname, :tname_new)
end
def self.down
end
end
Also, 0.3.1 is pretty old (as is JRuby 1.0.0RC1). If you want to help
develop the jdbc oracle support further it would be great if you could
update to JRuby 1.1.1 and ar-jdbc 0.8.
Finally, can we take this discussion over to the jruby-user list?
Interesting part is, a simple create_table script works fine even when I
deleted the contents of jdbc_oracle.rb file and made it blank.
But when I deleted the file jdbc_oracle.rb from the folder, it throws an
error "could not find file jdbc_oracle.rb".