No Version Number on migrationm

View: New views
3 Messages — Rating Filter:   Alert me  

No Version Number on migrationm

by NormBoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have re-installed netbeans and am getting a little problem with it.

When I do a migtaion instead of getting a version number like

001_create_posts

i get

 20080628104732_create_post.rb  

Any ideas?



Re: No Version Number on migrationm

by Bugzilla from ribeiro.luis@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi NormBoy,
Rails changed the way migrations are numbered on version 2.1.
This is would solve the issue of multiple developers creating a
migration with the same prefix and later commit it...

See http://dev.rubyonrails.org/ticket/11458 for more details.

You can still have the old behavior back,
edit environment.rb and add:


# Use a simple numeric sequence instead of UTC timestamps when
generating migrations.
config.active_record.timestamped_migrations = false


Luis Landeiro

NormBoy wrote:

> I have re-installed netbeans and am getting a little problem with it.
>
> When I do a migtaion instead of getting a version number like
>
> 001_create_posts
>
> i get
>
>  20080628104732_create_post.rb  
>
> Any ideas?:super:
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: No Version Number on migrationm

by NormBoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ahh many thank for your quick reply!!

Many thanks!

Have a good day!

NormBoy
Bugzilla from ribeiro.luis@gmail.com wrote:
Hi NormBoy,
Rails changed the way migrations are numbered on version 2.1.
This is would solve the issue of multiple developers creating a
migration with the same prefix and later commit it...

See http://dev.rubyonrails.org/ticket/11458 for more details.

You can still have the old behavior back,
edit environment.rb and add:


# Use a simple numeric sequence instead of UTC timestamps when
generating migrations.
config.active_record.timestamped_migrations = false


Luis Landeiro

NormBoy wrote:
> I have re-installed netbeans and am getting a little problem with it.
>
> When I do a migtaion instead of getting a version number like
>
> 001_create_posts
>
> i get
>
>  20080628104732_create_post.rb  
>
> Any ideas?:super:
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org