From 52c390d5796a0660bfd30716fde236f5169cb147 Mon Sep 17 00:00:00 2001 From: Roger Wang Date: Mon, 9 Dec 2013 14:36:48 -0600 Subject: [PATCH] Add parentheses around LIKE {table} per https://github.com/winton/acts_as_archive/issues/30 --- lib/also_migrate/migrator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/also_migrate/migrator.rb b/lib/also_migrate/migrator.rb index c444a09..a20baf8 100644 --- a/lib/also_migrate/migrator.rb +++ b/lib/also_migrate/migrator.rb @@ -66,7 +66,7 @@ def create_tables(config) else connection.execute(<<-SQL) CREATE TABLE #{new_table} - LIKE #{config[:source]}; + (LIKE #{config[:source]}); SQL end end