Notes posted by jonathonjones
RSS feed![Default_avatar_30](https://www.gravatar.com/avatar/4b27856db49b84de81487fedbf674d7e?default=http://apidock.com/images/default_avatar_30.png&size=30)
0 thanks
It also works with strings
It works with strings:
ActiveRecord::Base.connection.column_exists?('users', 'id')
Which is helpful if you need to specify the database/schema to use:
ActiveRecord::Base.connection.column_exists?('secondary.users', 'id')