mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-17 01:42:53 +00:00
Moving to github
This commit is contained in:
20
db/migrate/20260328200226_create_igdb_games.rb
Normal file
20
db/migrate/20260328200226_create_igdb_games.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
class CreateIgdbGames < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :igdb_games do |t|
|
||||
t.bigint :igdb_id, null: false
|
||||
t.string :name, null: false
|
||||
t.string :slug
|
||||
t.string :cover_url
|
||||
t.text :summary
|
||||
t.date :first_release_date
|
||||
t.integer :match_count, default: 0, null: false
|
||||
t.datetime :last_synced_at
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :igdb_games, :igdb_id, unique: true
|
||||
add_index :igdb_games, :name
|
||||
add_index :igdb_games, :slug
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user