Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

float doesn't work in sexy_migrations

#10

Using a column of type "float" doesn't work using sexy_migrations. At least, not with PostgreSQL.

Reported by Stephen Touset · May 7th, 2007 @ 12:49 AM

State: resolved
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to open
    • Assigned user set to Chris Wanstrath

    May 7th, 2007 @ 12:49 AM

  2. Stephen Touset
    Stephen Touset

    I fixed it by (slightly) modifying simplified_type. The second parameter is set to 0, rather than false. This doesn't appear to break anything else, on the surface, but test it thoroughly.

    def simplified_type(type)

    ActiveRecord::ConnectionAdapters::Column.new(

    :type_check, 0, type.to_s

    ).type

    end

    May 7th, 2007 @ 12:49 AM

  3. Chris Wanstrath

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.