mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Registrars import
This commit is contained in:
parent
6b0e155bc1
commit
7cb0a4bdd3
8 changed files with 105 additions and 38 deletions
10
app/models/legacy/db.rb
Normal file
10
app/models/legacy/db.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
module Legacy
|
||||
class Db < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
establish_connection :fred
|
||||
|
||||
def readonly?
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
5
app/models/legacy/registrar.rb
Normal file
5
app/models/legacy/registrar.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module Legacy
|
||||
class Registrar < Db
|
||||
self.table_name = :registrar
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue