16 lines
416 B
Ruby
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
|