schema.rb

来自「A Hotel Management System based on Ruby 」· RB 代码 · 共 17 行

RB
17
字号
ActiveRecord::Schema.define :version => 0 do
  create_table :people, :force => true do |t|
    t.column :date_of_birth,          :date
    t.column :date_of_death,          :date
    
    t.column :date_of_arrival,        :date
    t.column :date_of_departure,      :date
  
    t.column :time_of_birth,          :time
    t.column :time_of_death,          :time
    
    t.column :date_and_time_of_birth, :datetime
    
    t.column :required_date,          :date
  end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?