diff --git a/db/migrate/20250409200631_add_color_to_workflow_stages.rb b/db/migrate/20250409200631_add_color_to_workflow_stages.rb new file mode 100644 index 000000000..8221a6f20 --- /dev/null +++ b/db/migrate/20250409200631_add_color_to_workflow_stages.rb @@ -0,0 +1,5 @@ +class AddColorToWorkflowStages < ActiveRecord::Migration[8.1] + def change + add_column :workflow_stages, :color, :string + end +end diff --git a/db/migrate/20250409201424_remove_color_from_cards.rb b/db/migrate/20250409201424_remove_color_from_cards.rb new file mode 100644 index 000000000..7cf6d8d5f --- /dev/null +++ b/db/migrate/20250409201424_remove_color_from_cards.rb @@ -0,0 +1,5 @@ +class RemoveColorFromCards < ActiveRecord::Migration[8.1] + def change + remove_column :cards, :color, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 95589151b..b7e50d935 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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 diff --git a/db/schema_cache.yml b/db/schema_cache.yml index 678e96d2e..592648228 100644 --- a/db/schema_cache.yml +++ b/db/schema_cache.yml @@ -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