You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveRecord::Base.connection.supports_foreign_keys? can be used to check if the db supports them (I think only sqlite doesn't), then ActiveRecord::Base.connection.foreign_keys("table_name") can be used to get the collection of them for any particular table.
Now that Rails (>4.2) has support for database foreign keys, it would be nice to have an option for seeing these in the annotations.
The text was updated successfully, but these errors were encountered: