title: self.table_name is not working
body: <p>I am trying to learn rails Active Record.
  Learnt that <code>self.table_name</code> can be used to rename a table which rails create default.</p>
  
  <pre><code>class Order &lt; ActiveRecord::Base
      self.table_name = "ordered"
  end
  </code></pre>
  
  <p>But when I run the migration first time , I still get the <code>orders</code> table, not the one which I mentioned in the string. What is the mistake done here?</p>
  
  <p>migration:</p>
  
  <pre><code>class CreateOrders &lt; ActiveRecord::Migration
    def change
      create_table :orders do |t|
  
        t.timestamps null: false
      end
    end
  end
  </code></pre>