This module performs the necessary steps to preserve the validity of an schema dump if, when creating a table, the :versionable option has been set
(Not documented)
# File vendor/plugins/ubiquo_versions/lib/ubiquo_versions/schema_dumper.rb, line 9
9: def table_with_versions(table, stream)
10: tbl = StringIO.new
11: table_without_versions(table, tbl)
12: tbl.rewind
13: result = tbl.read
14: result.gsub!(/integer([\s]*) (\"version_number\")([^\n]*)/, ('sequence\1"'+table+'", \2'))
15: result.gsub!(/integer([\s]*) (\"content_id\")([^\n]*)/, ('sequence\1"'+table+'", \2'))
16: stream.print result
17: end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.