diff --git a/db/migrate/20240826201811_align_models.rb b/db/migrate/20240826201811_align_models.rb new file mode 100644 index 000000000..5736b9b4e --- /dev/null +++ b/db/migrate/20240826201811_align_models.rb @@ -0,0 +1,5 @@ +class AlignModels < ActiveRecord::Migration[8.0] + def change + rename_column :boosts, :content, :body + end +end diff --git a/db/schema.rb b/db/schema.rb index 1f711a99b..2a337ad4b 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.0].define(version: 2024_08_20_170703) do +ActiveRecord::Schema[8.0].define(version: 2024_08_26_201811) do create_table "accounts", force: :cascade do |t| t.string "name", null: false t.datetime "created_at", null: false @@ -19,7 +19,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_08_20_170703) do end create_table "boosts", force: :cascade do |t| - t.string "content" + t.string "body" t.integer "creator_id", null: false t.integer "splat_id", null: false t.datetime "created_at", null: false diff --git a/test/fixtures/boosts.yml b/test/fixtures/boosts.yml index 9e2ec75c2..adc95ec22 100644 --- a/test/fixtures/boosts.yml +++ b/test/fixtures/boosts.yml @@ -1,21 +1,21 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html one: - content: "" + body: "" creator: :jz splat: one two: - content: "" + body: "" creator: :kevin splat: two three: - content: "" + body: "" creator: :kevin splat: one four: - content: "" + body: "" creator: :jz splat: one