# File lib/rbase/schema_dumper.rb, line 17 def self.dump(table) output = '' output << "RBase.create_table :#{table.name} do |t|\n" table.columns.each do |column| output << " t.column '#{column.name}', '#{column.type}', :size => #{column.size}#{ (column.decimal && column.decimal > 0) ? ", :decimal => #{column.decimal}" : ''}\n" end output << "end\n" end