I\'m using this command:
rails generate model DayOfMonth day:integer
Rails generated the model \"DayOfMonth\" and the table \"day_of_months\".<
You have to say what's the plural form of 'day of month' in an initializer 'inflections.rb':
ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'day of month', 'days of month'
inflect.irregular 'day_of_month', 'days_of_month'
end
That worked for me. Although, I'm still getting errors when defining associations to that model:
has_many :days_of_month