1 2 3 4 5 6 7 8 9 10 11 12 13
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