Skip to content

Commit e45e0b3

Browse files
committed
Annotations for new tables
1 parent 069d043 commit e45e0b3

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

app/models/discourse_translator/post_locale.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,14 @@ class PostLocale < ActiveRecord::Base
1010
validates :detected_locale, presence: true
1111
end
1212
end
13+
14+
# == Schema Information
15+
#
16+
# Table name: discourse_translator_post_locales
17+
#
18+
# id :bigint not null, primary key
19+
# post_id :integer not null
20+
# detected_locale :string(20) not null
21+
# created_at :datetime not null
22+
# updated_at :datetime not null
23+
#

app/models/discourse_translator/post_translation.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,19 @@ def self.translation_for(post_id, locale)
1616
end
1717
end
1818
end
19+
20+
# == Schema Information
21+
#
22+
# Table name: discourse_translator_post_translations
23+
#
24+
# id :bigint not null, primary key
25+
# post_id :integer not null
26+
# locale :string not null
27+
# translation :text not null
28+
# created_at :datetime not null
29+
# updated_at :datetime not null
30+
#
31+
# Indexes
32+
#
33+
# idx_on_post_id_locale_0cc3d81e5b (post_id,locale) UNIQUE
34+
#

app/models/discourse_translator/topic_locale.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,14 @@ class TopicLocale < ActiveRecord::Base
1010
validates :detected_locale, presence: true
1111
end
1212
end
13+
14+
# == Schema Information
15+
#
16+
# Table name: discourse_translator_topic_locales
17+
#
18+
# id :bigint not null, primary key
19+
# topic_id :integer not null
20+
# detected_locale :string(20) not null
21+
# created_at :datetime not null
22+
# updated_at :datetime not null
23+
#

app/models/discourse_translator/topic_translation.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,19 @@ def self.translation_for(topic_id, locale)
1616
end
1717
end
1818
end
19+
20+
# == Schema Information
21+
#
22+
# Table name: discourse_translator_topic_translations
23+
#
24+
# id :bigint not null, primary key
25+
# topic_id :integer not null
26+
# locale :string not null
27+
# translation :text not null
28+
# created_at :datetime not null
29+
# updated_at :datetime not null
30+
#
31+
# Indexes
32+
#
33+
# idx_on_topic_id_locale_70b2f83213 (topic_id,locale) UNIQUE
34+
#

0 commit comments

Comments
 (0)