Skip to content

Commit

Permalink
Remove default values for UserStats created_at and updated_at
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-nathan committed Apr 15, 2024
1 parent 4ee291f commit fd4509f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions db/migrate/20240415115711_user_stats_no_default_timestamp.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class UserStatsNoDefaultTimestamp < ActiveRecord::Migration[7.1]
def change
change_column_default(:user_stats, :created_at, nil)
change_column_default(:user_stats, :updated_at, nil)
end
end
6 changes: 3 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_04_12_212247) do
ActiveRecord::Schema[7.1].define(version: 2024_04_15_115711) do
create_table "api_keys", id: :integer, charset: "utf8mb3", force: :cascade do |t|
t.datetime "created_at", precision: nil
t.datetime "last_used", precision: nil
Expand Down Expand Up @@ -689,8 +689,8 @@
t.string "languages"
t.string "bonuses"
t.string "checklist"
t.datetime "created_at", default: "2024-03-09 22:56:06", null: false
t.datetime "updated_at", default: "2024-03-09 22:56:06", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["user_id"], name: "user_index"
end

Expand Down

0 comments on commit fd4509f

Please sign in to comment.