I am using Rails 3.0.5. I use MySQL as a database repository. I have a model in which one of the columns must be BIGINT. In my migration creation file, I use the following:
t.column :my_column_name, :bigint
which works great.
However, when I run
rake db: migrate
the generated schema.rb file creates the following line for a specific column:
t.integer "my_column_name", :limit => 8
which is wrong.
My question is where am I mistaken? Is there something I have to do to get the correct schema.rb file? Can I change the way the schema.rb file is created?
Please note that the fact that the "schema.rb" file is incorrect causes problems on my continuous integration server, which runs tests and creates db from scratch (before running the tests) using the "schema.rb" file.
mysql ruby-on-rails bigint
p.matsinopoulos
source share