Method: JunglePath::DBAccess::Meta::Table.copy_data

Defined in:
lib/jungle_path/db_access/meta/table.rb

.copy_data(db, from_table, to_table) ⇒ Object



24
25
26
# File 'lib/jungle_path/db_access/meta/table.rb', line 24

def self.copy_data(db, from_table, to_table)
  db.base.run("insert into #{to_table} select * from #{from_table}")
end