stubs/default/db/migrate/20240101000000_create_users.rb in kaze-0.1.0 vs stubs/default/db/migrate/20240101000000_create_users.rb in kaze-0.2.0

- old
+ new

@@ -1,11 +1,14 @@ -class CreateUsers < ActiveRecord::Migration[7.1] - def change - create_table :users do |t| - t.string :name - t.string :email - t.string :password_digest - - t.timestamps +class CreateUsers < ActiveRecord::Migration + def self.up + create_table :users do |table| + table.string :name + table.string :email + table.string :password_digest + table.timestamps end + end + + def self.down + drop_table :users end end