1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/schema/sqlite_specific_schema.rb
kenjiszk 15e04b4ef8 add mysql and sqlite3 default test
[Gannon McGibbon + Kenji Suzuki]
2018-09-01 22:09:01 -04:00

11 lines
380 B
Ruby

# 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