fixed empty db bug

This commit is contained in:
Rueshyna committed 2012-12-06 22:37:43 +08:00
1 parent 633a68675a
commit 749e794c30
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)