Sha256: a71304953f8009423274e5c4fde0d9da49affc4d124c33aeba70e271dd58b9fa
Contents?: true
Size: 1.01 KB
Versions: 20
Compression:
Stored size: 1.01 KB
Contents
# Populate the database with a small set of realistic sample data so that as a developer/designer, you can use the # application without having to create a bunch of stuff or pull down production data. # # After running db:sample_data, a developer/designer should be able to fire up the app, sign in, browse data and see # examples of practically anything (interesting) that can happen in the system. # # It's a good idea to build this up along with the features; when you build a feature, make sure you can easily demo it # after running db:sample_data. # # Data that is required by the application across all environments (i.e. reference data) should _not_ be included here. # That belongs in seeds.rb instead. # TODO Disable sending emails, no need for seed data. User.find_or_create_by_email('user@example.com') do |u| u.name = 'Ustead User' u.password = 'password' end.activate! User.find_or_create_by_email('admin@example.com') do |u| u.name = 'Adam Admin' u.password = 'password' u.admin = true end.activate!
Version data entries
20 entries across 20 versions & 1 rubygems