Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はSQLサーバーで続編のルビーオームを使用しています。移行で日時フィールドのデフォルト値を SQL サーバー関数 getdate() に設定する方法を知りたいです。
create_table(:table) do primary_key :id datetime :last_update, null: false, default: ??? end
ご協力いただきありがとうございます :-)
default: Sequel.function(:getdate)現在のバージョンの Sequel を使用していると仮定すると、おそらく が必要になるでしょう。
default: Sequel.function(:getdate)