This method was making a DB query every time. Chances are that if the table is there the first time, it'll continue to exist. This is an assumption generally baked into ActiveRecord - it caches the schema for every table when its corresponding model is used and never checks it again for the life of the process. |
||
|---|---|---|
| .. | ||
| acts_as_taggable_on | ||
| constants | ||
| honeycomb | ||
| middlewares | ||
| redcarpet/render | ||
| reverse_markdown/converters | ||
| api_constraints.rb | ||
| app_secrets.rb | ||
| black_box.rb | ||
| html_css_to_image.rb | ||
| menu.rb | ||
| rails_env_constraint.rb | ||
| release_phase_notifier.rb | ||
| seeder.rb | ||
| string_attribute_cleaner.rb | ||
| throttled_call.rb | ||
| url.rb | ||