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

Version Path
raygun-0.0.34 rails_32/db/sample_data.rb
raygun-0.0.34.pre2 rails_32/db/sample_data.rb
raygun-0.0.33 rails_32/db/sample_data.rb
raygun-0.0.32 rails_32/db/sample_data.rb
raygun-0.0.31 rails_32/db/sample_data.rb
raygun-0.0.30 rails_32/db/sample_data.rb
raygun-0.0.29 rails_32/db/sample_data.rb
raygun-0.0.28 rails_32/db/sample_data.rb
raygun-0.0.27 app_prototype/db/sample_data.rb
raygun-0.0.26 app_prototype/db/sample_data.rb
raygun-0.0.25 app_prototype/db/sample_data.rb
raygun-0.0.24 app_prototype/db/sample_data.rb
raygun-0.0.23 app_prototype/db/sample_data.rb
raygun-0.0.22 app_prototype/db/sample_data.rb
raygun-0.0.21 app_prototype/db/sample_data.rb
raygun-0.0.18 app_prototype/db/sample_data.rb
raygun-0.0.17 app_prototype/db/sample_data.rb
raygun-0.0.16 app_prototype/db/sample_data.rb
raygun-0.0.15 app_prototype/db/sample_data.rb
raygun-0.0.14 app_prototype/db/sample_data.rb