On 7 Jun 2008, at 19:02, Sean Six wrote:
>
> I am trying to create a user model. When I generate the script, rails
> creates all the files though the migrate file should be labeled
> 001_create_users.rb. Instead the file has the date followed by some
> other number and then _create_users.rb.
rails 2.1 is different. This is normal
(http://ryandaigle.com/articles/2008/4/2/what-s-new-in-edge-rails-utc-based-migration-versioning
)
Fred> Also it looks like the template
> for the file is slightly off from what I was expecting.
>
> class CreateUsers < ActiveRecord::Migration
> def self.up
> create_table :users do |t|
>
> t.timestamps
> end
> end
>
> def self.down
> drop_table :users
> end
> end
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---