-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(CE): data app model migration (#350)
Co-authored-by: afthab vp <[email protected]>
- Loading branch information
1 parent
274c199
commit 9e40465
Showing
3 changed files
with
51 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class CreateDataApps < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :data_apps do |t| | ||
t.string :name, null: false | ||
t.integer :status, null: false | ||
t.integer :workspace_id, null: false | ||
t.text :description | ||
t.json :meta_data | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
server/db/migrate/20240829131951_create_visual_component.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,15 @@ | ||
class CreateVisualComponent < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :visual_components do |t| | ||
t.integer :component_type, null: false | ||
t.string :name, null: false | ||
t.integer :workspace_id, null: false | ||
t.integer :data_app_id, null: false | ||
t.integer :model_id, null: false | ||
t.jsonb :properties | ||
t.jsonb :feedback_config | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.