setup rails app

This commit is contained in:
Thomas Peetz
2025-06-26 16:06:35 +02:00
parent 4871f56320
commit 1be2dcbdfc
268 changed files with 6145 additions and 177 deletions
@@ -0,0 +1,3 @@
class ApplicationRecord < ActiveRecord::Base
primary_abstract_class
end
+2
View File
@@ -0,0 +1,2 @@
class Artist < ApplicationRecord
end
+8
View File
@@ -0,0 +1,8 @@
class Comic < ApplicationRecord
belongs_to :publisher
has_many :issues, optional = true
has_many :story_arcs, optional = true
has_many :trade_paperbacks, optional = true
has_many :volumes, optional = true
has_many :comic_works, optional = true
end
+2
View File
@@ -0,0 +1,2 @@
class ComicWork < ApplicationRecord
end
+6
View File
@@ -0,0 +1,6 @@
class Issue < ApplicationRecord
belongs_to :comic
belongs_to :volume, optional = true
belongs_to :story_arc, optional = true
has_many :issue_works
end
+2
View File
@@ -0,0 +1,2 @@
class IssueWork < ApplicationRecord
end
+3
View File
@@ -0,0 +1,3 @@
class Publisher < ApplicationRecord
has_many :comics
end
+5
View File
@@ -0,0 +1,5 @@
class StoryArc < ApplicationRecord
belongs_to :comics
belongs_to :volumes
has_many :issues
end
@@ -0,0 +1,3 @@
class TradePaperback < ApplicationRecord
belongs_to :comics
end
+5
View File
@@ -0,0 +1,5 @@
class Volume < ApplicationRecord
belongs_to :comics
has_many :story_arcs, optional = true
has_many :issues, optional = true
end
+2
View File
@@ -0,0 +1,2 @@
class Worktype < ApplicationRecord
end