Even with the reset_db above?


On Wed, Jun 4, 2014 at 11:01 AM, nanan9177 <notifications@github.com> wrote:

> In lib/tasks/seed.rake:
>
> > @@ -14,6 +14,21 @@ namespace :seed do
> >      end
> >    end
> >
> > +  task import_stanford_hints: :environment do
> > +    LevelSourceHint.transaction do
> > +      LevelSourceHint.delete_all("hint_id is not null")
> > +      CSV.read('config/stanford-hint-ids.tsv', { col_sep: "\t" }).each do |row|
> > +        LevelSourceHint.create!(level_
> source_id: row[0], hint_id: row[1])
> > +      end
> > +    end
> > +    Hint.transaction do
> > +      Hint.reset_db
> > +      CSV.read('config/stanford-hint-messages.tsv', { col_sep: "\t" }).each do |row|
> > +        Hint.create!(id: row[0], message: row[1])
>
> Same here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/code-dot-org/dashboard/pull/771/files#r13400896>.
>