Declare this in your model.
alias_attribute :new_column_name, :column_name_in_db
More Related Contents:
- Eager load polymorphic
- PG undefinedtable error relation users does not exist
- Rails order by results count of has_many association
- How to chain scope queries with OR instead of AND?
- When to use a “has_many :through” relation in Rails?
- Rails 3: Get Random Record
- Setting session timeout in Rails 3
- ActiveRecord Find By Year, Day or Month on a Date field
- Rails 3 devise, current_user is not accessible in a Model ?
- Multiple databases in Rails
- Rails 3, has_one / has_many with lambda condition
- Rails 3 – select with Include?
- belongs_to through associations
- Check if record exists from controller in Rails
- Validate uniqueness of multiple columns
- Rails – Validate Presence Of Association?
- delete_all vs destroy_all?
- How to implement Active Record inheritance in Ruby on Rails?
- How to implement bulk insert in Rails 3
- PGError: ERROR: aggregates not allowed in WHERE clause on a AR query of an object and its has_many objects
- How do I avoid a race condition in my Rails app?
- Specifying column name in a “references” migration
- Rails: Order with nulls last
- Is there a way to get a collection of all the Models in your Rails app?
- No route matches “/users/sign_out” devise rails 3
- Extending controllers of a Rails 3 Engine in the main app
- Find all records which have a count of an association greater than zero
- Controlling the order of rails validations
- Rails catch-all/globbing routes
- Always getting 401 Unauthorized with new install of Rails + Devise