lib/baza/index.rb in baza-0.0.19 vs lib/baza/index.rb in baza-0.0.20
- old
+ new
@@ -1,9 +1,15 @@
class Baza::Index
+ include Baza::DatabaseModelFunctionality
+
def to_s
"#<#{self.class.name} name: \"#{name}\" unique=\"#{unique?}\" columns: #{@columns}>"
end
def inspect
to_s
+ end
+
+ def to_param
+ name
end
end