diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-05-03 20:49:45 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-13 22:03:56 +0900 |
commit | 5fd30ac52d9f8fcdba98b92cdb82868f6686596c (patch) | |
tree | 9903a3d3f2be13dc57a9607fffa16315767e75e5 /activerecord/test/cases/invertible_migration_test.rb | |
parent | f5ab4055b909e7b325304c5a7e414c28bbe441b7 (diff) | |
download | rails-5fd30ac52d9f8fcdba98b92cdb82868f6686596c.tar.gz rails-5fd30ac52d9f8fcdba98b92cdb82868f6686596c.tar.bz2 rails-5fd30ac52d9f8fcdba98b92cdb82868f6686596c.zip |
Add expression support on the schema default
Example:
create_table :posts do |t|
t.datetime :published_at, default: -> { 'NOW()' }
end
Diffstat (limited to 'activerecord/test/cases/invertible_migration_test.rb')
0 files changed, 0 insertions, 0 deletions