rake build failing with RangeError
Closed this issue · 4 comments
kevgathuku commented
Hello,
When trying to build the initial database with the rake build
command, I am getting the following error:
** Invoke importworld (first_time)
** Invoke configworld (first_time)
** Invoke config (first_time)
** Invoke env
** Execute config
[warn] Rakefile - 2015-02-02 17:43:00 +0300
rake aborted!
RangeError: 69936435566960 is out of range for ActiveRecord::Type::Integer with limit 4
I suspect that it could be happening in
## log all warns, errors, fatals to db
LogDb.setup
but I could be wrong.
How should I deal with this?
Thanks in advance.
geraldb commented
Thanks for reporting. What database are you using? e.g. SQlite, MySQL, PostgreSQL etc.?
kevgathuku commented
@geraldb I am using sqlite. I have not modified the default settings.
However when I changed the tid field to add a limit of 8, the build command ran successfully
geraldb commented
Thanks. Good catch. Cheers.
kevgathuku commented
@geraldb I think this is really an issue with https://github.com/rubylibs/logutils-activerecord
so I'll close this.
Would you mind looking at the Pull Request I submitted there and give me your views?
Thanks.