Skip to content

Commit

Permalink
Make explicit the call to quote_table_name so the code finds it.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Aug 20, 2008
1 parent 219f038 commit e8ec7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/air_blade/migrations.rb
Expand Up @@ -30,7 +30,7 @@ def foreign_key_constraint(from_table, from_column, options = {})
end
cmd = [ "constraint #{constraint_name from_table, from_column}",
"foreign key (#{from_column})",
"references #{quote_table_name to_table}(id)",
"references #{ActiveRecord::Base.connection.quote_table_name to_table}(id)",
]
cmd << "on delete #{on_delete}" if on_delete
cmd << "on update #{on_update}" if on_update
Expand Down

0 comments on commit e8ec7ba

Please sign in to comment.