Created
September 4, 2014 14:49
-
-
Save mayra-cabrera/f3f19de618be62e8c1a7 to your computer and use it in GitHub Desktop.
Active Record
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> Order.columns_hash["pay_type"] | |
=> #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0x7fe673f7da80 | |
@name="pay_type", @null=true, @default=nil, @sql_type="varchar(10)", | |
@type=:string, @scale=nil, @precision=nil, @primary=false, | |
@limit=10> | |
product.price_before_type_cast #=> "29.95", a string | |
product.updated_at_before_type_cast #=> "2008-05-13 10:13:14" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment