Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Doesn't work (from guide): rails g scaffold Post title:string:index author:uniq price:decimal{7,2} #5638

Closed
joegoggins opened this Issue · 1 comment

2 participants

@joegoggins

This statement does not work:

rails g scaffold Post title:string:index author:uniq price:decimal{7,2}

In particular the price:decimal{7,2} results in the following code in the migration:

t.decimal7 :price
t.decimal2 :price

instead of:

t.decimal :price, :precision => 7, :scale => 2

This is from:

http://guides.rubyonrails.org/3_2_release_notes.html

I confirmed this issue with sqlite3 with Ruby 1.9.2 and activerecord-jdbcmysql-adapter and JRuby 1.6.7.

@vijaydev
Collaborator

Reported in #4602 and fixed in 1f9d6a0.

The release notes doesn't have this since it was made at the time of 3.2 release.

@vijaydev vijaydev closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.