OSDN Git Service

Adds models
authornangxiang <nangxiang@users.sourceforge.jp>
Wed, 14 Sep 2011 09:15:16 +0000 (18:15 +0900)
committernangxiang <nangxiang@users.sourceforge.jp>
Wed, 14 Sep 2011 09:15:16 +0000 (18:15 +0900)
16 files changed:
hanMorph/app/models/dx_radical.rb [new file with mode: 0644]
hanMorph/app/models/dx_volume.rb [new file with mode: 0644]
hanMorph/app/models/dx_wordhead.rb [new file with mode: 0644]
hanMorph/app/models/field.rb [new file with mode: 0644]
hanMorph/app/models/field_type.rb [new file with mode: 0644]
hanMorph/app/models/ideograph.rb [new file with mode: 0644]
hanMorph/app/models/property.rb [new file with mode: 0644]
hanMorph/app/models/rhyme.rb [new file with mode: 0644]
hanMorph/app/models/rime_group.rb [new file with mode: 0644]
hanMorph/app/models/sw_chapter.rb [new file with mode: 0644]
hanMorph/app/models/sw_character.rb [new file with mode: 0644]
hanMorph/app/models/sw_radical.rb [new file with mode: 0644]
hanMorph/app/models/sw_wordhead.rb [new file with mode: 0644]
hanMorph/app/models/voice.rb [new file with mode: 0644]
hanMorph/app/models/volume.rb [new file with mode: 0644]
hanMorph/app/models/wordhead.rb [new file with mode: 0644]

diff --git a/hanMorph/app/models/dx_radical.rb b/hanMorph/app/models/dx_radical.rb
new file mode 100644 (file)
index 0000000..63cb508
--- /dev/null
@@ -0,0 +1,3 @@
+class DxRadical < ActiveRecord::Base
+  belongs_to :volume
+end
diff --git a/hanMorph/app/models/dx_volume.rb b/hanMorph/app/models/dx_volume.rb
new file mode 100644 (file)
index 0000000..cf69bea
--- /dev/null
@@ -0,0 +1,2 @@
+class DxVolume < ActiveRecord::Base
+end
diff --git a/hanMorph/app/models/dx_wordhead.rb b/hanMorph/app/models/dx_wordhead.rb
new file mode 100644 (file)
index 0000000..c6e1dcc
--- /dev/null
@@ -0,0 +1,3 @@
+class DxWordhead < ActiveRecord::Base
+  belongs_to :radical
+end
diff --git a/hanMorph/app/models/field.rb b/hanMorph/app/models/field.rb
new file mode 100644 (file)
index 0000000..4e71b5d
--- /dev/null
@@ -0,0 +1,3 @@
+class Field < ActiveRecord::Base
+  belongs_to :field_type
+end
diff --git a/hanMorph/app/models/field_type.rb b/hanMorph/app/models/field_type.rb
new file mode 100644 (file)
index 0000000..112cc24
--- /dev/null
@@ -0,0 +1,2 @@
+class FieldType < ActiveRecord::Base
+end
diff --git a/hanMorph/app/models/ideograph.rb b/hanMorph/app/models/ideograph.rb
new file mode 100644 (file)
index 0000000..3710896
--- /dev/null
@@ -0,0 +1,2 @@
+class Ideograph < ActiveRecord::Base
+end
diff --git a/hanMorph/app/models/property.rb b/hanMorph/app/models/property.rb
new file mode 100644 (file)
index 0000000..b5466ed
--- /dev/null
@@ -0,0 +1,4 @@
+class Property < ActiveRecord::Base
+  belongs_to :field
+  belongs_to :ideograph
+end
diff --git a/hanMorph/app/models/rhyme.rb b/hanMorph/app/models/rhyme.rb
new file mode 100644 (file)
index 0000000..6294354
--- /dev/null
@@ -0,0 +1,5 @@
+class Rhyme < ActiveRecord::Base
+  belongs_to :volume
+  belongs_to :voice
+  belongs_to :rhymeGroup
+end
diff --git a/hanMorph/app/models/rime_group.rb b/hanMorph/app/models/rime_group.rb
new file mode 100644 (file)
index 0000000..a223b01
--- /dev/null
@@ -0,0 +1,2 @@
+class RimeGroup < ActiveRecord::Base
+end
diff --git a/hanMorph/app/models/sw_chapter.rb b/hanMorph/app/models/sw_chapter.rb
new file mode 100644 (file)
index 0000000..c19a58d
--- /dev/null
@@ -0,0 +1,2 @@
+class SwChapter < ActiveRecord::Base
+end
diff --git a/hanMorph/app/models/sw_character.rb b/hanMorph/app/models/sw_character.rb
new file mode 100644 (file)
index 0000000..6d8dc54
--- /dev/null
@@ -0,0 +1,5 @@
+class SwCharacter < ActiveRecord::Base
+  belongs_to :rime_group
+  belongs_to :phonetic_component
+  belongs_to :radical
+end
diff --git a/hanMorph/app/models/sw_radical.rb b/hanMorph/app/models/sw_radical.rb
new file mode 100644 (file)
index 0000000..edded86
--- /dev/null
@@ -0,0 +1,4 @@
+class SwRadical < ActiveRecord::Base
+  belongs_to :chapter
+  belongs_to :character
+end
diff --git a/hanMorph/app/models/sw_wordhead.rb b/hanMorph/app/models/sw_wordhead.rb
new file mode 100644 (file)
index 0000000..cbbf376
--- /dev/null
@@ -0,0 +1,3 @@
+class SwWordhead < ActiveRecord::Base
+  belongs_to :character
+end
diff --git a/hanMorph/app/models/voice.rb b/hanMorph/app/models/voice.rb
new file mode 100644 (file)
index 0000000..3beab77
--- /dev/null
@@ -0,0 +1,4 @@
+class Voice < ActiveRecord::Base
+  belongs_to :rhyme
+  belongs_to :wordhead
+end
diff --git a/hanMorph/app/models/volume.rb b/hanMorph/app/models/volume.rb
new file mode 100644 (file)
index 0000000..13e7af6
--- /dev/null
@@ -0,0 +1,2 @@
+class Volume < ActiveRecord::Base
+end
diff --git a/hanMorph/app/models/wordhead.rb b/hanMorph/app/models/wordhead.rb
new file mode 100644 (file)
index 0000000..123bd33
--- /dev/null
@@ -0,0 +1,3 @@
+class Wordhead < ActiveRecord::Base
+  belongs_to :voice
+end