Sha256: e9f191fef486bc933cd4b8dc9d946e4aec457754f59f0ce0c2b3aa8ea0dda8fb
Contents?: true
Size: 485 Bytes
Versions: 2
Compression:
Stored size: 485 Bytes
Contents
class ActiveRoad::Migration < ActiveRecord::Migration # def connection # # @connection can be wrapped (with CommandRecorder in Rails 3.2 for example) # if roads_connection?(@connection) # @connection # else # @connection = ActiveRoad::Base.connection # end # end # def roads_connection?(connection) # connection.respond_to?(:current_database) and # connection.current_database == ActiveRoad::Base.connection.current_database # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_road-0.0.3 | lib/active_road/migration.rb |
active_road-0.0.2 | lib/active_road/migration.rb |