"ActiveRecord::StatementInvalid: Could not find table" in rails model inheritance
<p>When I run</p>

<pre><code>irb(main):003:0&gt; House.new(name: "A house")
</code></pre>

<p>I get the error</p>

<pre><code>ActiveRecord::StatementInvalid: Could not find table 'houses'
    from /home/overflow012/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0.rc1/lib/active_record/connection_adapters/sqlite3_adapter.rb:429:in `table_structure'
...
</code></pre>

<p>You can see my code below</p>

<p><strong>property.rb</strong></p>

<pre><code>class Property &lt; ApplicationRecord
    self.abstract_class = true
end
</code></pre>

<p><strong>apartment.rb</strong></p>

<pre><code>class Apartment &lt; Property
end
</code></pre>

<p><strong>house.rb</strong></p>

<pre><code>class House &lt; Property
end
</code></pre>

<p><strong>db/migrate/20160616022800_create_properties.rb</strong></p>

<pre><code>class CreateProperties &lt; ActiveRecord::Migration[5.0]
  def change
    create_table :properties do |t|
      t.string :name
      t.string :detail
      t.float :price
      t.string :type
      t.timestamps
    end
  end
end
</code></pre>

<p>And the properties table was created via <code>rake db:migrate</code>
<a href="https://i.stack.imgur.com/nFF4X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nFF4X.png" alt="enter image description here"></a>
<strong>Note</strong>: I'm using rails 5.0.0.rc1</p>

<p>What am I doing wrong?</p>