Sha256: 0ebf9ae4e2edef308ca9836fd1458a1fc627b369238177ac7503cfe56bc184f9

Contents?: true

Size: 700 Bytes

Versions: 65

Compression:

Stored size: 700 Bytes

Contents

# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
#
# User.find_or_create_by(email: "admin@admin.com") do |user|
#   user.name = 'Admin'
#   user.password = 'password'
#   user.admin = true
# end

people = TodoList.create(name: 'people')
jobs   = TodoList.create(name: 'jobs')
# lisa  = User.create(email: 'lisa@site.com', name: 'lisa', password: 'password')

5.times do |i|
  TodoItem.create(todo_list: people, task: "Person Name #{i}", position: i)
  TodoItem.create(todo_list: jobs  , task: "Profession #{i}", position: i)
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.3.5 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.3.4 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.3.3 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.3.2 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.3.1 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.3.0 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.43 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.42 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.41 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.40 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.39 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.38 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.37 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.36 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.35 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.34 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.33 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.32 after_templates/addons/acts_as_list/db/seeds.rb
rails_app_generator-0.2.31 after_templates/addons/acts_as_list/db/seeds.rb