Skip to content

Commit 9e40465

Browse files
chore(CE): data app model migration (#350)
Co-authored-by: afthab vp <[email protected]>
1 parent 274c199 commit 9e40465

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class CreateDataApps < ActiveRecord::Migration[7.1]
2+
def change
3+
create_table :data_apps do |t|
4+
t.string :name, null: false
5+
t.integer :status, null: false
6+
t.integer :workspace_id, null: false
7+
t.text :description
8+
t.json :meta_data
9+
10+
t.timestamps
11+
end
12+
end
13+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class CreateVisualComponent < ActiveRecord::Migration[7.1]
2+
def change
3+
create_table :visual_components do |t|
4+
t.integer :component_type, null: false
5+
t.string :name, null: false
6+
t.integer :workspace_id, null: false
7+
t.integer :data_app_id, null: false
8+
t.integer :model_id, null: false
9+
t.jsonb :properties
10+
t.jsonb :feedback_config
11+
12+
t.timestamps
13+
end
14+
end
15+
end

server/db/schema.rb

+23-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)