-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c50def
commit 2d1370d
Showing
37 changed files
with
224 additions
and
180 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class CreateArtefactAction < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :artefact_actions do |t| | ||
t.string :action_type | ||
t.jsonb :snapshot | ||
t.string :task_performed_by | ||
t.timestamps | ||
t.references :user, foreign_key: true | ||
t.references :artefact, index: true, foreign_key: true | ||
end | ||
end | ||
end |
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,25 @@ | ||
class CreateArtefact < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :artefacts do |t| | ||
t.string :name | ||
t.string :slug | ||
t.string :paths, array: true, default: [] | ||
t.string :prefixes, array: true, default: [] | ||
t.string :kind | ||
t.string :owning_app | ||
t.string :rendering_app | ||
t.boolean :active, default: false | ||
t.string :publication_id | ||
t.string :description | ||
t.string :state, default: "draft" | ||
t.string :language, default: "en" | ||
t.string :latest_change_note | ||
t.datetime :public_timestamp | ||
t.string :redirect_url | ||
t.string :content_id | ||
t.timestamps | ||
t.index %i[name state kind id] | ||
t.index :slug, unique: true | ||
end | ||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
db/migrate/20250228161852_create_artefact_external_link.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 @@ | ||
class CreateArtefactExternalLink < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :artefact_external_links do |t| | ||
t.string :title | ||
t.string :url | ||
t.references :artefact, foreign_key: true | ||
t.timestamps | ||
end | ||
end | ||
end |
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
Oops, something went wrong.