lib/ridgepole/diff.rb in ridgepole-0.2.5 vs lib/ridgepole/diff.rb in ridgepole-0.2.6
- old
+ new
@@ -47,12 +47,13 @@
if (from_table_name = (to_attrs[:options] || {}).delete(:renamed_from))
# Already renamed
next if from[table_name]
- unless from.has_key?(from_table_name)
- raise "Table `#{from_table_name}` not found"
- end
+ # No existence checking because there is that the table to be read is limited
+ #unless from.has_key?(from_table_name)
+ # raise "Table `#{from_table_name}` not found"
+ #end
delta[:rename] ||= {}
if @options[:reverse]
delta[:rename][from_table_name] = table_name