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

      t.string :email, null: false
      t.string :customer_id
      t.boolean :active, null: false, default: false

      t.timestamps
    end
  end
end
