stubs/default/db/migrate/20240101000000_create_users.rb in kaze-0.10.0 vs stubs/default/db/migrate/20240101000000_create_users.rb in kaze-0.11.0
- old
+ new
@@ -1,12 +1,14 @@
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |table|
- table.string :name
- table.string :email
- table.timestamp :email_verified_at, null: true
- table.string :password_digest
- table.string :remember_token, null: true
+ table.string :name, null: false
+ table.string :email, null: false
+ table.timestamp :email_verified_at
+ table.string :password_digest, null: false
+ table.string :remember_token
+ table.integer :current_team_id
+ table.string :profile_photo_path, limit: 2048
table.timestamps
end
end
def self.down