In Rails 3.1 set_inheritance_column
is deprecated, also you can just use nil
as a name, like this:
class Pancakes < ActiveRecord::Base
self.inheritance_column = nil
#...
end
More Related Contents:
- How can I rename a database column in a Ruby on Rails migration?
- How to get a random number in Ruby
- Why do routes with a dot in a parameter fail to match?
- When to use a “has_many :through” relation in Rails?
- rake db:schema:load vs. migrations
- ActiveRecord Find By Year, Day or Month on a Date field
- How to fix the uninitialized constant Rake::DSL problem on Heroku?
- Rails 3: Multiple Select with has_many through associations
- Rails 3 SQLite3 Boolean false
- Rails 3, has_one / has_many with lambda condition
- Rails 3 submit a form with multiple records
- Rails – How to use a Helper Inside a Controller
- Rails 3 UTF-8 query string showing up in URL?
- How to match accented characters with a regex?
- Remove ActiveRecord in Rails 3
- f.error_messages in Rails 3.0
- Rails – Validate Presence Of Association?
- Rails 3.1 and Image Assets
- Convert UTC to local time in Rails 3
- Scope with join on :has_many :through association
- Rails form_for :remote=>true is not calling js method
- Remote mysql database on Heroku app
- How to implement bulk insert in Rails 3
- Controlling the order of rails validations
- Ruby on Rails 3 howto make ‘OR’ condition
- Adding foreign key to a rails model
- Rails catch-all/globbing routes
- jQuery post to Rails
- Always getting 401 Unauthorized with new install of Rails + Devise
- Difference between resource and resources methods