Skip to content

Commit

Permalink
Change score column from float to integer for curura_games
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-k committed Apr 12, 2024
1 parent fb8981c commit 16a3612
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeScoreFloatToIntForCururaGames < ActiveRecord::Migration[7.1]
def change
change_column :curura_games, :score, :integer
end
end
4 changes: 2 additions & 2 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_11_175622) do
ActiveRecord::Schema[7.1].define(version: 2024_04_12_170557) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand All @@ -21,7 +21,7 @@
end

create_table "curura_games", force: :cascade do |t|
t.float "score", default: 0.0
t.integer "score", default: 0
t.string "country"
t.datetime "start_time"
t.datetime "created_at", null: false
Expand Down

0 comments on commit 16a3612

Please sign in to comment.