What creates the FOREIGN KEY constraint in Ruby on Rails 3?

You can use the foreigner gem for adding foreign keys to your application. To get started add the following to your Gemfile.

ActiveRecord is designed to be able to work with databases that may or may not explicitly support foreign keys. By declaring belongs_to :shop in your Product model, AR essentially builds the foreign key relationship automatically, and does not depend on the database to manage it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions