DB Adapter specific code in migrations
Monday, May 25th, 2009adapter = User.connection.instance_variable_get(“@config”)[:adapter]
if adapter == “jdbc” # Oracle
# …
elsif adapter == “postgresql” # Postgres
# …
end
adapter = User.connection.instance_variable_get(“@config”)[:adapter]
if adapter == “jdbc” # Oracle
# …
elsif adapter == “postgresql” # Postgres
# …
end
NZ on Screen won the Best Entertainment Website award at the 2009 Qantas Media Awards.