fixed empty db bug

This commit is contained in:
Rueshyna authored and chris committed 2012-12-07 04:21:27 +08:00
1 parent a84cb560a0
commit 1c7ddb4b29
6 files changed
+7 -5

No files matched your search

-1
View File
@@ -1,4 +1,3 @@
CoAuthorRelation.destroy_all
types = ["friend", "teacher", "student", "schoolmate", "parent", "best friend", "instructor", "labmate", "TA", "mate"]
-1
View File
@@ -1,4 +1,3 @@
CoAuthor.destroy_all
name_tw = Array.new 51,""
name_tw = name_tw.map do |p| Faker::Name::name end
-1
View File
@@ -1,4 +1,3 @@
JournalLevelType.destroy_all
level = ["SCI", "SCIE", "SSCI", "AH & HCI", "EI", "CSCI", "CSSCI", "TSCI", "TSSCI", "THCI"]
-1
View File
@@ -1,4 +1,3 @@
WritingJournalFile.destroy_all
file_desc = Array.new 7, ""
file_desc = file_desc.map do |p| Faker::Lorem.word end
-1
View File
@@ -1,6 +1,5 @@
require 'json'
WritingJournal.destroy_all
data = File.read("#{Rails.root}/db/data")
data_json = JSON.parse(data)