On 10 March 2010 07:49, Yudi Soesanto <[email protected]> wrote:
> Hi guys,
>
> I have this situation,
>
> #migration data
> class CreateStats < ActiveRecord::Migration
>   def self.up
>     create_table :stats do |t|
>       t.integer :points
>       t.integer :assists
>       t.integer :blocks
>       t.integer :turnovers
>     end
>
>   def self.down
>       drop_table :stats
>   end
> end
>
> #Model
> class Stat < ActiveRecord:Base
>
> end
>
> How i can store integer data type and when application display the data back
> (Since it will do calculation) it will display float on each column points,
> assists, blocks and turnovers?

I think you need to give more detail of what you are attempting to
achieve, give an example.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to