app/models/tr8n/ip_location.rb in tr8n-3.2.1 vs app/models/tr8n/ip_location.rb in tr8n-3.2.2
- old
+ new
@@ -18,12 +18,35 @@
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
+#
+#-- Tr8n::IpLocation Schema Information
+#
+# Table name: tr8n_ip_locations
+#
+# id INTEGER not null, primary key
+# low integer(8)
+# high integer(8)
+# registry varchar(20)
+# assigned date
+# ctry varchar(2)
+# cntry varchar(3)
+# country varchar(80)
+# created_at datetime
+# updated_at datetime
+#
+# Indexes
+#
+# index_tr8n_ip_locations_on_high (high)
+# index_tr8n_ip_locations_on_low (low)
+#
+#++
class Tr8n::IpLocation < ActiveRecord::Base
set_table_name :tr8n_ip_locations
+ attr_accessible :low, :high, :registry, :assigned, :ctry, :cntry, :country
def self.no_country_clause
%q{COALESCE(country, 'ZZZ') = 'ZZZ'}
end