class CreatePayaConfigs < ActiveRecord::Migration[6.0]
  def change
    create_table :paya_configs do |t|
      t.references :school, type: :integer, null: false,
        foreign_key: { to_table: :Schools, primary_key: :SchoolID }

      t.boolean :enabled, null: false, default: false
      t.string :location_id
      t.string :user_id
      t.string :user_api_key
      t.string :user_hash_key
    end
  end
end
