Top "Seeding" questions

Laravel 5.1 refresh and seed a single table

I'm looking to refresh and seed a single table in Laravel 5.1. Is this even possible? I have tried the below, …

laravel laravel-5 seeding
What does the integer while setting the seed mean?

I want to randomly select n rows from my data set using the sample() function in R. I was getting …

r random random-sample seeding
You cannot call create unless the parent is saved error when seeding in rails

I'm trying to populate my SQLite3 database with a simple seed file that is supposed to create a bunch o …

ruby-on-rails seeding
Constructors on classes extending Eloquent

I just started a new website and I wanted to make use of Eloquent. In the process of seeding my …

php laravel laravel-4 eloquent seeding
Sequelize: seed with associations

I have 2 models, Courses and Videos, for example. And Courses has many Videos. // course.js 'use strict'; module.exports = (sequelize, …

javascript node.js sequelize.js models seeding
appending to rake db:seed in rails and running it without duplicating data

Rake db:seed populates your db with default database values for an app right? So what if you already have …

ruby-on-rails ruby ruby-on-rails-3 seeding
RoR, Can't iterate from DateTime/TimeWithZone

I have a simple task where I want to take a starting date and an ending date and loop over …

ruby-on-rails ruby datetime seeding
Seed initial data in Entity Framework 7 RC 1 and ASP.NET MVC 6

It seems that in Entity Framework 7 there is no native support for seed data yet (https://github.com/aspnet/EntityFramework/…

c# entity-framework asp.net-core-mvc entity-framework-core seeding
FactoryGirl + Faker - same data being generated for every object in db seed data

I am using FactoryGirl and Faker to generate user objects in my seeds.rb file but for some reason the …

ruby-on-rails database factory-bot seeding faker
Sequelize dynamic seeding

I'm currently seeding data with Sequelize.js and using hard coded values for association IDs. This is not ideal because …

javascript sequelize.js seeding