saucy/db/migrate/20220620195513_create_member.rb
2022-06-25 13:48:46 +01:00

16 lines
416 B
Ruby

class CreateMember < ActiveRecord::Migration[7.0]
def change
create_table :members, id: :uuid do |t|
t.serial :number, null: false, index: { unique: true }
t.string :email, null: false, index: { unique: true }
t.string :display_name, null: false
t.string :identification_number
t.string :status
t.string :category
t.text :address
t.timestamps
end
end
end