initial data model implementation

This commit is contained in:
2026-01-22 13:47:01 +01:00
parent bf2f9e9af7
commit c2436fab13
101 changed files with 2667 additions and 0 deletions
View File
+13
View File
@@ -0,0 +1,13 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
user: one
commentable: one
commentable_type: Commentable
body: MyText
two:
user: two
commentable: two
commentable_type: Commentable
body: MyText
+27
View File
@@ -0,0 +1,27 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
category: 1
fi: MyString
en: MyString
sv: MyString
'no': MyString
ru: MyString
de: MyString
notes: MyText
verified: false
created_by: one
updated_by: one
two:
category: 1
fi: MyString
en: MyString
sv: MyString
'no': MyString
ru: MyString
de: MyString
notes: MyText
verified: false
created_by: two
updated_by: two
+13
View File
@@ -0,0 +1,13 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
entry: one
user: one
changes_made:
change_type: MyString
two:
entry: two
user: two
changes_made:
change_type: MyString
View File
+27
View File
@@ -0,0 +1,27 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
entry: one
language_code: MyString
alternative_translation: MyString
context: MyText
reasoning: MyText
source: MyString
region: MyString
status: 1
submitted_by: one
reviewed_by: one
reviewed_at: 2026-01-22 13:38:22
two:
entry: two
language_code: MyString
alternative_translation: MyString
context: MyText
reasoning: MyText
source: MyString
region: MyString
status: 1
submitted_by: two
reviewed_by: two
reviewed_at: 2026-01-22 13:38:22
+15
View File
@@ -0,0 +1,15 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
code: MyString
name: MyString
native_name: MyString
sort_order: 1
active: false
two:
code: MyString
name: MyString
native_name: MyString
sort_order: 1
active: false
+23
View File
@@ -0,0 +1,23 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
email: MyString
password_digest: MyString
name: MyString
role: 1
primary_language: MyString
invitation_token: MyString
invitation_sent_at: 2026-01-22 13:38:37
invitation_accepted_at: 2026-01-22 13:38:37
invited_by: one
two:
email: MyString
password_digest: MyString
name: MyString
role: 1
primary_language: MyString
invitation_token: MyString
invitation_sent_at: 2026-01-22 13:38:37
invitation_accepted_at: 2026-01-22 13:38:37
invited_by: two
View File
View File
View File
View File
+7
View File
@@ -0,0 +1,7 @@
require "test_helper"
class CommentTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require "test_helper"
class EntryTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require "test_helper"
class EntryVersionTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require "test_helper"
class SuggestedMeaningTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require "test_helper"
class SupportedLanguageTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require "test_helper"
class UserTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+15
View File
@@ -0,0 +1,15 @@
ENV["RAILS_ENV"] ||= "test"
require_relative "../config/environment"
require "rails/test_help"
module ActiveSupport
class TestCase
# Run tests in parallel with specified workers
parallelize(workers: :number_of_processors)
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
# Add more helper methods to be used by all tests here...
end
end