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

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -