Move color column to stages
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddColorToWorkflowStages < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
add_column :workflow_stages, :color, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class RemoveColorFromCards < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
remove_column :cards, :color, :string
|
||||
end
|
||||
end
|
||||
Generated
+2
-2
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.1].define(version: 2025_04_09_043626) do
|
||||
ActiveRecord::Schema[8.1].define(version: 2025_04_09_201424) do
|
||||
create_table "accesses", force: :cascade do |t|
|
||||
t.integer "collection_id", null: false
|
||||
t.datetime "created_at", null: false
|
||||
@@ -108,7 +108,6 @@ ActiveRecord::Schema[8.1].define(version: 2025_04_09_043626) do
|
||||
t.float "activity_score_order", default: 0.0, null: false
|
||||
t.integer "boosts_count", default: 0, null: false
|
||||
t.integer "collection_id", null: false
|
||||
t.string "color"
|
||||
t.integer "comments_count", default: 0, null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.integer "creator_id", null: false
|
||||
@@ -316,6 +315,7 @@ ActiveRecord::Schema[8.1].define(version: 2025_04_09_043626) do
|
||||
end
|
||||
|
||||
create_table "workflow_stages", force: :cascade do |t|
|
||||
t.string "color"
|
||||
t.datetime "created_at", null: false
|
||||
t.string "name", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
|
||||
+11
-11
@@ -418,16 +418,6 @@ columns:
|
||||
collation:
|
||||
comment:
|
||||
- *23
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: color
|
||||
cast_type: *7
|
||||
sql_type_metadata: *8
|
||||
'null': true
|
||||
default:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: comments_count
|
||||
@@ -966,6 +956,16 @@ columns:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: color
|
||||
cast_type: *7
|
||||
sql_type_metadata: *8
|
||||
'null': true
|
||||
default:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
workflows:
|
||||
- *5
|
||||
- *32
|
||||
@@ -2140,4 +2140,4 @@ indexes:
|
||||
nulls_not_distinct:
|
||||
comment:
|
||||
valid: true
|
||||
version: 20250409043626
|
||||
version: 20250409201424
|
||||
|
||||
Reference in New Issue
Block a user