5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 02:06:22 +00:00
panel/db/migrate/20211022225449_add_name_to_stats.rb

10 lines
240 B
Ruby
Raw Normal View History

2022-04-23 18:06:55 +00:00
# frozen_string_literal: true
# Agregarle un nombre a la estadística
class AddNameToStats < ActiveRecord::Migration[6.1]
def change
add_column :stats, :name, :string, null: false
add_index :stats, :name, using: 'hash'
end
end