Changing my 'seed' file - Rails -


i have seeded user database, change 1 of fields. seems, migrations, cannot edit file , run rake db:seed. doesnt seem change anything. how edit have seeded in? thanks!

you can use console change data you've seeded, or otherwise in database. if it's lot of data need change can write migration make changes data, table structure.

to use console

rails c > u = user.last > u.first_name = "boygeorge" > u.save 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -