-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add term customizer gem and one time actions (#14)
- Loading branch information
Showing
7 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...20241018100809_create_decidim_term_customizer_translation_sets.decidim_term_customizer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_term_customizer (originally 20190217132503) | ||
|
||
class CreateDecidimTermCustomizerTranslationSets < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_term_customizer_translation_sets do |t| | ||
t.jsonb :name | ||
end | ||
end | ||
end |
19 changes: 19 additions & 0 deletions
19
...ate/20241018100810_create_decidim_term_customizer_translations.decidim_term_customizer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_term_customizer (originally 20190217132654) | ||
|
||
class CreateDecidimTermCustomizerTranslations < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_term_customizer_translations do |t| | ||
t.string :locale | ||
t.string :key | ||
t.text :value | ||
|
||
t.references( | ||
:translation_set, | ||
null: false, | ||
foreign_key: { to_table: :decidim_term_customizer_translation_sets }, | ||
index: { name: "decidim_term_customizer_translation_translation_set" } | ||
) | ||
end | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
...rate/20241018100811_create_decidim_term_customizer_constraints.decidim_term_customizer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_term_customizer (originally 20190217132726) | ||
|
||
class CreateDecidimTermCustomizerConstraints < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_term_customizer_constraints do |t| | ||
t.references :decidim_organization, null: false, foreign_key: true, index: { name: "decidim_term_customizer_constraint_organization" } | ||
t.references :subject, polymorphic: true, index: { name: "decidim_term_customizer_constraint_subject" } | ||
|
||
t.references( | ||
:translation_set, | ||
null: false, | ||
foreign_key: { to_table: :decidim_term_customizer_translation_sets }, | ||
index: { name: "decidim_term_customizer_constraint_translation_set" } | ||
) | ||
end | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters