I\'m using this command:
rails generate model DayOfMonth day:integer
Rails generated the model \"DayOfMonth\" and the table \"day_of_months\".<
You could just edit the migration and then add
Rails 3.2+ / 4+
class DayOfMonth < ActiveRecord::Base self.table_name = "days_of_month" end
Rails 3
class DayOfMonth < ActiveRecord::Base set_table_name "days_of_month" end