2021-02-20から1日間の記事一覧
railsでmigrationファイルのdefaultについて調べてもあまり明確なものがなかったため記録しておきます。 def change create_table :users do |t| ## Database authenticatable t.string :email, null: false, default: "" t.string :encrypted_password, nul…
railsでmigrationファイルのdefaultについて調べてもあまり明確なものがなかったため記録しておきます。 def change create_table :users do |t| ## Database authenticatable t.string :email, null: false, default: "" t.string :encrypted_password, nul…