Project

General

Profile

Refactor #11130

Calling set_table_name is deprecated

Added by Dominic Cleal about 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
Team Backlog:
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

Related to Foreman - Bug #10994: Extra interface added when selecting compute profileClosed2015-07-03

Associated revisions

Revision 796179e5 (diff)
Added by Shlomi Zadok almost 4 years ago

fixes #11130 - Use self.table_name instead of deprecated set_table_name

History

#1 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #10994: Extra interface added when selecting compute profile added

#2 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2708 added
  • Pull request deleted ()

#3 Updated by Dominic Cleal almost 4 years ago

  • Assignee set to Shlomi Zadok
  • Legacy Backlogs Release (now unused) set to 63

#4 Updated by Shlomi Zadok almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF