hensei-api/db/migrate/20230311065331_create_books_table.rb
2023-03-10 23:14:33 -08:00

13 lines
474 B
Ruby

class CreateBooksTable < ActiveRecord::Migration[7.0]
def change
def change
create_table :books, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
t.string :name_en, null: false, unique: true
t.string :name_jp, null: false, unique: true
t.string :description_en, null: false, unique: true
t.string :description_jp, null: false, unique: true
t.string :granblue_id, null: false, unique: true
end
end
end
end