mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
14 lines
312 B
Ruby
14 lines
312 B
Ruby
module Legacy
|
|
class Db < ActiveRecord::Base
|
|
self.abstract_class = true
|
|
begin
|
|
establish_connection :fred
|
|
rescue ActiveRecord::AdapterNotSpecified => e
|
|
logger.info "Legacy 'fred' database support is currently disabled because #{e}"
|
|
end
|
|
|
|
def readonly?
|
|
true
|
|
end
|
|
end
|
|
end
|