Rails Schema creation problem

前端 未结 6 1983
悲哀的现实
悲哀的现实 2021-02-01 09:52

I am using Jruby and rails 2.2.2. My problem is I have a migration that is not being correctly written to the database schema.

Here is my migration:

c         


        
6条回答
  •  耶瑟儿~
    2021-02-01 10:16

    Just an update for those on Rails 3 (beta 4, currently) - Christian's solution is still correct, only the correct place to put the line is in config/application.rb, under the scope of the Application class which should be defined in a module named after your Rails project.

提交回复
热议问题