From 5643b0a52879d29b2d483304e236ba62c3bc6e9c Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Tue, 13 Nov 2012 17:22:25 +0800 Subject: [PATCH] delete demo db of journal and paper --- app/models/journal.rb | 19 ------------------- app/models/paper.rb | 12 ------------ 2 files changed, 31 deletions(-) delete mode 100644 app/models/journal.rb delete mode 100644 app/models/paper.rb diff --git a/app/models/journal.rb b/app/models/journal.rb deleted file mode 100644 index b1a65284..00000000 --- a/app/models/journal.rb +++ /dev/null @@ -1,19 +0,0 @@ -class Journal - include Mongoid::Document - include Mongoid::Timestamps - - field :user_id - field :title - - belongs_to :user - has_many :papers, :autosave => true, :dependent => :destroy - - before_create :initialize_paper - - def initialize_paper - for i in 0..11 - self.papers.build - end - end - -end diff --git a/app/models/paper.rb b/app/models/paper.rb deleted file mode 100644 index a2772574..00000000 --- a/app/models/paper.rb +++ /dev/null @@ -1,12 +0,0 @@ -class Paper - include Mongoid::Document - include Mongoid::Timestamps - - field :keywords, default: "Material, Fracture Mechanism, Reliability Test, Solder Joints, Nano-material" - field :title, default: "The performance and fracture mechanism of solder joints under mechanical reliability test" - field :abstract, default: "The concept of microstructure engineering has gained increasingly attention with the goal to quantitatively link the operational parameters of an industrial process to the properties of its product. The key component of this concept is to accurately model the microstructure evolution along the processing path. Modelling of recrystallization in Cuinterconnects will be presented as an example of a conventional process model. Further, the potential of developing next generation process models will be discussed by using models across different length and time scale. The multi-scale modelling approach will be illustrated with a case study for phase transformation in Fe-Mn alloys." - field :level, default: "SCI" - field :coauthors, default: "Allen, Shelly, Eric, Manson, Chris, Clara, Anna, Albee, Vincent, Devin, Chunchi, Ika, Jaoshua, Ray, Matt, Lin, Spen" - field :created_at, type: Date - belongs_to :journal - end \ No newline at end of file