Questions tagged [seeding]

525 questions
0
votes
1 answer

Ran rake db:seed command without a error; not updating in browser

I seeded the database with no error (sudo rake db:seed). But when I run the server ("localhost:3000/merchants"), none of the seeded information is displayed. Your assistance is appreciated. Link to git repository: https://github.com/b s h p…
user3159063
  • 385
  • 2
  • 5
  • 14
0
votes
1 answer

EF Data Migrations - Schema changes successfully applied but no data seed occurring?

I have an initial create in my migrations folder alongside a subsequent migration file. When I run Update-Database -ProjectName Data -StartUpProjectName Ui -Script from the Package Manager Console I get the Sql script that would be executed should I…
Marc
  • 924
  • 1
  • 8
  • 18
0
votes
1 answer

Altering data when seeding in Laravel

Apologies for this example, it's the best I could come up with. The Scenario I am building a Laravel 4.1 application and I have 2 tables, people and houses in a database called hogwarts. people includes students, staff, ghosts, mascots and so on, so…
0
votes
1 answer

Seeding a membership user throws null reference exception

Using MVC5 and EF6 I'm trying to create dummy user accounts by copying code from AccountController Register Action as below: class SampleData : DropCreateDatabaseAlways { public Microsoft.AspNet.Identity.UserManager
0
votes
1 answer

Entity Framework: Seeding data from the business layer

I am using Entity Framework 6, and code first. I have a Data, Bus, App layers. I wan to seed my data from the business layer, without coupling it onto the Data layer. The reason I would like to do it in the bus. layer is that some of the seed data…
0
votes
1 answer

Undefined method when seeding

I'm getting the following errors when trying to seed my database in ROR: [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales…
user3159063
  • 385
  • 2
  • 5
  • 14
0
votes
2 answers

Trying to seed database, getting error: unable to autoload constant

I'm getting the following errors when I run "sudo rake db:setup". Seeds.rb file and model included: boris@alpha:~/Desktop/Wholetail$ sudo rake db:drop:all boris@alpha:~/Desktop/Wholetail$ sudo rake --trace db:setup ** Invoke db:setup…
user3159063
  • 385
  • 2
  • 5
  • 14
0
votes
1 answer

seed_fu and Rail 4

I am learning ruby on rails 4 and I came across what initially appeared a perfect alternative for seeding data, seed_fu. It seems way more readable to me. When I went to check it out at github it stated, "The current latest version isn't compatible…
diek
  • 657
  • 7
  • 16
0
votes
1 answer

UDP Scraper for Modifed Torrent Editor in PHP

We are doing a site wherein you are allowed to edit the trackers of a torrent file. We are currently searching about the SEEDS and PEERS of a TRACKER. We are confused how it worked. Is there somebody that knows how to show the SEEDS and PEERS of a…
0
votes
2 answers

uninitialized constant while seeding

Trying to seed using Ruby on Rails in ubuntu and postgresql (sudo rake db:seed) and it keeps throwing an uninitialized constant error. This is what I'm getting: boris@alpha:~/Desktop/wikiful$ sudo rake db:seed --trace [sudo] password for boris: **…
user3159063
  • 385
  • 2
  • 5
  • 14
0
votes
1 answer

Rake db:seed not going through

I am running the command rake db:seed after I reset the database. I am getting the error User(#70157849141260) expected, got Fixnum(#70157833845020) When I run rake db:seed --trace this is the feedback I get ** Invoke db:seed (first_time) **…
user2184718
  • 675
  • 1
  • 12
  • 30
0
votes
1 answer

How to seed data from crawling in Magento application database?

I am building an eCommerce website. I am new to Magento as well. I am required to crawl data from a website and seed the same data in my upcoming website. How to save the data in tables. How to organize the data? Edit For me the major challenge is…
Ashish Agarwal
  • 6,215
  • 12
  • 58
  • 91
0
votes
1 answer

How to Save a Hashed Password and Salt to Varbinary Table Column From Code First Seed Method?

I'm working with Entity Framework Code First Migrations and I'd like to have the Seed method in my Configuration.cs file create a default user for me. I'm storing the hashed user passwords in the database as varbinary(64) and the salt as…
Bruno
  • 533
  • 1
  • 6
  • 27
0
votes
1 answer

Reverse seeding (Getting info from database into a seeder) in C#

New user so I hope I can tell you what I want --- I have a information in my database. I need to get that information in a seeder class in C#. I would rather not have to re-type the whole thing one line at a time. Is there any way for me to do this?…
RaviGold
  • 77
  • 3
  • 8
0
votes
1 answer

CompoundJS: Populating database with seed file hangs

I'm trying to populate my CompoundJS application's Mongo database with seed files, but whenever I run compound seed, the terminal hangs after my console.log statements... the database fills, but I have to kill the command with Ctrl-c. I've tried…
incutonez
  • 3,241
  • 9
  • 43
  • 92