Using arel table rather than sql quoted table

use arel rather than slapping together SQL strings