1

Is there a data type in Rails ActiveRecord migrations that maps to tinyint in mysql.

1 Answer 1

2

you can use :tinyint

but better check this out

http://craiccomputing.blogspot.com/2007/01/issues-with-tinyint-in-rails-table.html

hope this helps

cheers

sameera

Sign up to request clarification or add additional context in comments.

2 Comments

Also I found that it was mentioned in the Rails API that any type supported by the database can be used. Only problem will be that the code will not be database independent.
@indika, true... coz rails will convert everything to pure sql. And in my personal opinion its highly unlikly u change the database later :D

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.