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
Post a Comment