Project

General

Profile

Actions

Refactor #11130

closed

Calling set_table_name is deprecated

Added by Dominic Cleal almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

We get some deprecation warnings when running migrations:

2015-07-16T08:23:02 [app] [W] DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:FakeComputeAttribute> at /home/dcleal/code/foreman/foreman/db/migrate/20150714140850_remove_new_from_compute_attributes.rb:2)

Also in db/migrate/20140219183343_migrate_permissions.rb where I copied it from for the above migration.

set_table_name just needs changing as per the message.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #10994: Extra interface added when selecting compute profileClosedDominic Cleal07/03/2015Actions
Actions

Also available in: Atom PDF