File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33require 'couchbase-orm'
44
5- # GeoCoordinates nested document
6- class GeoCoordinates < CouchbaseOrm ::NestedDocument
5+ # AirportGeoCoordinates nested document
6+ class AirportGeoCoordinates < CouchbaseOrm ::NestedDocument
77 attribute :lat , :float
88 attribute :lon , :float
99 attribute :alt , :integer
@@ -21,7 +21,7 @@ class Airport < CouchbaseOrm::Base
2121 attribute :faa , :string
2222 attribute :icao , :string
2323 attribute :tz , :string
24- attribute :geo , :nested , type : GeoCoordinates
24+ attribute :geo , :nested , type : AirportGeoCoordinates
2525
2626 validates :airportname , presence : true
2727 validates :city , presence : true
Original file line number Diff line number Diff line change 1- class GeoCoordinates < CouchbaseOrm ::NestedDocument
1+ class HotelGeoCoordinates < CouchbaseOrm ::NestedDocument
22 attribute :lat , :float
33 attribute :lon , :float
44 attribute :accuracy , :string
@@ -76,7 +76,7 @@ def do_something_after_destroy
7676 attribute :checkin , :string
7777 attribute :checkout , :string
7878 attribute :price , :string
79- attribute :geo , :nested , type : GeoCoordinates
79+ attribute :geo , :nested , type : HotelGeoCoordinates
8080 attribute :type , :string
8181 attribute :country , :string
8282 attribute :city , :string
You can’t perform that action at this time.
0 commit comments