body better aligns with splat and comment

This commit is contained in:
Jason Zimdars
2024-08-26 15:25:06 -05:00
parent e11bbee4bb
commit a8fa39a21f
3 changed files with 11 additions and 6 deletions
@@ -0,0 +1,5 @@
class AlignModels < ActiveRecord::Migration[8.0]
def change
rename_column :boosts, :content, :body
end
end
Generated
+2 -2
View File
@@ -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
+4 -4
View File
@@ -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