makumba_import 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/makumba_import/importer.rb +3 -3
- metadata +1 -1
@@ -214,9 +214,9 @@ module MakumbaImport
|
|
214
214
|
txt << "# " + tablename.classify.tableize.singularize + ".rb\n\n"
|
215
215
|
|
216
216
|
txt << "class "+tablename.classify+" < ActiveRecord::Base\n"
|
217
|
-
txt << "
|
218
|
-
txt << "
|
219
|
-
txt << "
|
217
|
+
txt << " self.table_name = \""+tablename+"_\"\n"
|
218
|
+
txt << " self.primary_key = \""+lastpart+"_\"\n"
|
219
|
+
txt << " self.pointer_type = \""+key+"\"\n\n"
|
220
220
|
|
221
221
|
table.each do |name, field|
|
222
222
|
if name == 'ref'
|