体验新版 GitCode,发现更多精彩内容 >>
class CreateGpgKeys < ActiveRecord::Migration DOWNTIME = false def change create_table :gpg_keys do |t| t.string :fingerprint t.text :key t.references :user, index: true, foreign_key: true t.timestamps_with_timezone null: false end end end