This project is archived and is in readonly mode.

#767 ✓resolved
JS

Incorrect migrations when using pluralize_table_names

Reported by JS | August 6th, 2008 @ 09:37 PM | in 2.3.4

This happens both with the latest (2.1) gem version and the latest git version.

environment.rb:

config.activerecord.pluralizetable_names = false

./script/generate migration fruits/delicious/apple

will produce file: 20080806203144createfruitsdeliciousapples

class CreateFruitsDeliciousApples < ActiveRecord::Migration def self.up

create_table :fruits/delicious_apple do |t|

  t.timestamps
end

end

def self.down

drop_table :fruits/delicious_apple

end end

Fixes needed: 1.File name and class name should be singular. 2.:fruits/deliciousapple should be :fruitsdelicious_apple

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages