diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-02 18:52:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-02 18:52:01 +0900 |
commit | 736559d955c19392f6bba29960de639d49eb1814 (patch) | |
tree | 7da27742a64744ba413c9ad35a26792f8c4e0d54 /activerecord/test/schema/sqlite_specific_schema.rb | |
parent | d8ac08f6bf545c025d7540fb680f41233bcca566 (diff) | |
parent | 15e04b4ef8726198472382204196cad713aac364 (diff) | |
download | rails-736559d955c19392f6bba29960de639d49eb1814.tar.gz rails-736559d955c19392f6bba29960de639d49eb1814.tar.bz2 rails-736559d955c19392f6bba29960de639d49eb1814.zip |
Merge pull request #33776 from gmcgibbon/extend-database-default-value-test
add mysql and sqlite3 default test
Diffstat (limited to 'activerecord/test/schema/sqlite_specific_schema.rb')
-rw-r--r-- | activerecord/test/schema/sqlite_specific_schema.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/schema/sqlite_specific_schema.rb b/activerecord/test/schema/sqlite_specific_schema.rb new file mode 100644 index 0000000000..18192292e4 --- /dev/null +++ b/activerecord/test/schema/sqlite_specific_schema.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +ActiveRecord::Schema.define do + create_table :defaults, force: true do |t| + t.date :fixed_date, default: "2004-01-01" + t.datetime :fixed_time, default: "2004-01-01 00:00:00" + t.column :char1, "char(1)", default: "Y" + t.string :char2, limit: 50, default: "a varchar field" + t.text :char3, limit: 50, default: "a text field" + end +end |