lib/also_migrate/migrator.rb in also_migrate-0.3.5 vs lib/also_migrate/migrator.rb in also_migrate-0.3.6

- old
+ new

@@ -54,11 +54,11 @@ [ config[:indexes] ].flatten.compact.each do |column| connection.add_index(new_table, column) end else if connection.class.to_s.include?('SQLite') - col_string = connection.columns(old_table).collect {|c| + col_string = connection.columns(config[:source]).collect {|c| "#{c.name} #{c.sql_type}" }.join(', ') connection.execute(<<-SQL) CREATE TABLE #{new_table} (#{col_string}) @@ -94,6 +94,6 @@ end end end end end -end \ No newline at end of file +end